From: Akim Demaille Date: Tue, 13 Jun 2000 14:56:23 +0000 (+0000) Subject: `./config.status -d' is buggy. X-Git-Tag: autoconf-2.50~810 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5a508569f6332624ebc14b2680fbcfbd8ab21fc;p=thirdparty%2Fautoconf.git `./config.status -d' is buggy. * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Remove the `shift' in --debug. * doc/autoconf.texi (Limitations of Builtins): Some about shift. --- diff --git a/ChangeLog b/ChangeLog index b8666700f..d6c4baa87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-06-13 Akim Demaille + + `./config.status -d' is buggy. + + * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Remove the `shift' in + --debug. + * doc/autoconf.texi (Limitations of Builtins): Some about shift. + 2000-06-13 Akim Demaille * doc/autoconf.texi (Caching Results): Bigger warning about the diff --git a/acgeneral.m4 b/acgeneral.m4 index 167c67e3a..6efb979a5 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -3985,7 +3985,7 @@ Try \`$me --help' for more information."; exit 1 ;; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) - debug=:; shift ;; + debug=: ;; --file | --fil | --fi | --f ) shift CONFIG_FILES="$CONFIG_FILES $[1]" diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 9b8e80446..1dd9d52a4 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -4897,6 +4897,12 @@ if cmp -s file file.new; then :; else fi @end example +@item @command{shift} +@cindex @command{shift} +Not only is @command{shift}ing a bad idea when there is nothing left to +shift, but in addition it is not portable: the shell of @sc{RISC/os} +4.52 refuses it. + @item @command{test} @cindex @command{test} The @code{test} program is the way to perform many file and string diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 167c67e3a..6efb979a5 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -3985,7 +3985,7 @@ Try \`$me --help' for more information."; exit 1 ;; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) - debug=:; shift ;; + debug=: ;; --file | --fil | --fi | --f ) shift CONFIG_FILES="$CONFIG_FILES $[1]"