From: Stepan Kasal Date: Fri, 21 Oct 2005 05:46:49 +0000 (+0000) Subject: Document that ${10} is not portable. X-Git-Tag: AUTOCONF-2.59c~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d82bbbdadd3573a701cc03769d5e81b044f326;p=thirdparty%2Fautoconf.git Document that ${10} is not portable. --- diff --git a/ChangeLog b/ChangeLog index 846381ee1..179313c0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,15 @@ +2005-10-20 Stepan Kasal + + * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is + not portable; thanks to Paul Eggert and Alexandre. + + * NEWS: Fix an old typo. + 2005-10-20 Jim Meyering * doc/autoconf.texi: Typo: s/feature/features/ in ``the features of the latter'', in two places. -2005-10-20 Stepan Kasal - - * NEWS: Fix an old typo. - 2005-10-19 Paul Eggert * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS -> diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 254984de7..3b75db505 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -6701,7 +6701,7 @@ therefore as much as possible you ought to avoid using them to wrap your code, rather, require from the user to run the macro with a correct current language, and check it with @code{AC_LANG_ASSERT}. And anyway, that may help the user understand she is running a Fortran -macro while expecting a result about her Fortran 77 compiler... +macro while expecting a result about her Fortran 77 compiler@dots{} @end defmac @@ -10328,6 +10328,19 @@ case $# in esac @end example + +@item $@{10@} +@cindex positional parameters +The 10th, 11th, @dots{} positional parameters can be accessed only after +a @code{shift}. The 7th edition shell reported an error if given @code{$@{10@}}; +Solaris 10 @command{/bin/sh} still acts that way: + +@example +$ @kbd{set 1 2 3 4 5 6 7 8 9 10} +$ @kbd{echo $@{10@}} +bad substitution +@end example + @item $@{@var{var}:-@var{value}@} @c Info cannot handle `:' in index entries. @c @cindex $@{@var{var}:-@var{value}@} @@ -15812,7 +15825,7 @@ this scheme helps supporting more languages than plain C and C++. In addition to the change of syntax, the philosphy has changed too: while emphasis was put on speed at the expense of accuracy, today's -Autoconf promotes accuracy of the testing framework at, ahem..., the +Autoconf promotes accuracy of the testing framework at, ahem@dots{}, the expense of speed.