diff options
author | Paul Eggert <eggert@twinsun.com> | 2002-03-23 06:47:22 +0000 |
---|---|---|
committer | Paul Eggert <eggert@twinsun.com> | 2002-03-23 06:47:22 +0000 |
commit | 6461c63615a17d10b5b190f1c4f10b03edc2ef10 (patch) | |
tree | 6050a3794213b09b1897d131517ce2ef3ac13dfe /admin | |
parent | 6e34ec2973c0a070180512e36cd9431742f19602 (diff) | |
download | emacs-6461c63615a17d10b5b190f1c4f10b03edc2ef10.tar.gz |
(PRUNED): Avoid "head -1" and "tail +2", as POSIX 1003.1-2001
disallows both usages.
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/quick-install-emacs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs index 947f031c1e5..fa423a5dc6e 100755 --- a/admin/quick-install-emacs +++ b/admin/quick-install-emacs @@ -131,7 +131,7 @@ fi CONFIG_STATUS="$BUILD/config.status" function get_config_var () { - if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | head -1 | grep '' + if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | sed q | grep '' then echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" exit 4 @@ -164,15 +164,15 @@ maybe_mkdir "$DST_INFO" PRUNED="" if test x"$PRUNE" != xno; then - for D in `ls -1t $BUILD/etc/DOC-* | tail +2`; do + for D in `ls -1t $BUILD/etc/DOC-* | sed 1d`; do echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done - for D in `ls -1t $BUILD/src/emacs-$VERSION.* | tail +2`; do + for D in `ls -1t $BUILD/src/emacs-$VERSION.* | sed 1d`; do echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done - for D in `ls -1t $BUILD/lib-src/fns-* | tail +2`; do + for D in `ls -1t $BUILD/lib-src/fns-* | sed 1d`; do echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done |