summaryrefslogtreecommitdiffstats
path: root/Documentation/features
diff options
context:
space:
mode:
authordcg <diegocg@gmail.com>2016-01-21 11:23:43 +0100
committerJonathan Corbet <corbet@lwn.net>2016-01-26 15:19:08 -0700
commitdf8a0dde73069b69c7d6f2a1758857c482d59e18 (patch)
treee61ffc859f315d06b0e94048af3dab259ce00f41 /Documentation/features
parent3047bcc537cf90ce73f87271e4bc11e83972632c (diff)
downloadlinux-df8a0dde73069b69c7d6f2a1758857c482d59e18.tar.gz
linux-df8a0dde73069b69c7d6f2a1758857c482d59e18.tar.bz2
linux-df8a0dde73069b69c7d6f2a1758857c482d59e18.zip
Remove "arch" usage in Documentation/features/list-arch.sh
Commit 669f6f96c680a741257ada44a28b580df2e1fc25 introduced the script list-arch.sh, which uses the command "arch": ARCH=${1:-$(arch | sed 's/x86_64/x86/' | sed 's/i386/x86/')} It turns out that the "arch" command does not exist in my system (arch distro). Google found man pages which say "arch is deprecated command since release util-linux 2.13. Use uname -m" (util-linux 2.13 was released in 2007). I also found a debian bug reporting the lack of arch and being told to use uname -m https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446023 But then, why it works in some distros? Apparently coreutils gained an optional arch command that needs to be explicitly enabled during compilation. Some distros enable it, others don't. Sigh. Signed-off-by: Diego Calleja <diegocg@gmail.com> Acked-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/features')
-rwxr-xr-xDocumentation/features/list-arch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/features/list-arch.sh b/Documentation/features/list-arch.sh
index 6065124a072f..c16b5b595688 100755
--- a/Documentation/features/list-arch.sh
+++ b/Documentation/features/list-arch.sh
@@ -5,7 +5,7 @@
# (If no arguments are given then it will print the host architecture's status.)
#
-ARCH=${1:-$(arch | sed 's/x86_64/x86/' | sed 's/i386/x86/')}
+ARCH=${1:-$(uname -m | sed 's/x86_64/x86/' | sed 's/i386/x86/')}
cd $(dirname $0)
echo "#"