Re: portability of positional parameters after $9?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexandre Duret-Lutz <adl@xxxxxxxxxxx> writes:

> years I've been convinced that the only safe way to access
> positional parameters past $9 was to shift them first.  I can't
> recall why.  I'm wondering whether this is a myth of mine,

It's not a myth.  The 7th edition shell behaved that way; it reported
an error if given "${10}".  Solaris 10 /bin/sh still acts that way:

$ set 1 2 3 4 5 6 7 8 9 10
$ echo ${10}
bad substitution


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux