summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-02-17 19:05:53 +0000
committerJim Meyering <jim@meyering.net>2002-02-17 19:05:53 +0000
commit5e55fec6e9772d4c3019fd899a252a7bb2534d97 (patch)
tree8f7fc765e691c2a36af3552d3af072f63c3e8978
parent28d582acd98d49e80ce5728d5a6b4ed035a9e357 (diff)
downloadcoreutils-5e55fec6e9772d4c3019fd899a252a7bb2534d97.tar.xz
*** empty log message ***
-rw-r--r--config/ChangeLog4
-rw-r--r--config/config.guess4
2 files changed, 6 insertions, 2 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
new file mode 100644
index 000000000..9e60dd4dc
--- /dev/null
+++ b/config/ChangeLog
@@ -0,0 +1,4 @@
+2002-02-17 Jim Meyering <meyering@lucent.com>
+
+ * config.guess (main): Don't use `head -1'; it's no longer portable.
+ Use `sed 1q' instead.
diff --git a/config/config.guess b/config/config.guess
index 88eaf68e1..b03a3b551 100644
--- a/config/config.guess
+++ b/config/config.guess
@@ -340,7 +340,7 @@ EOF
echo m68k-sun-sunos${UNAME_RELEASE}
exit 0 ;;
sun*:*:4.2BSD:*)
- UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
case "`/bin/arch`" in
sun3)
@@ -509,7 +509,7 @@ EOF
fi
exit 0 ;;
*:AIX:*:[45])
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
else