Positional parameters beyond $9 (manpage is right)
Paul Slootman
slootman at dri.nl
Wed Apr 17 00:44:09 AEST 1991
In article <1998 at quando.quantum.de> omerzu at quantum.de (Thomas Omerzu) writes:
|>not seen before. If a script has more than 9 positional parameters,
|>there seems to be no way to *directly* access the tenth onwards. Try
|[...]
|>other way. Nothing in TFM states anything about problems with more
|>than 9 parameters (unless I've overlooked it...)
|
|Quote from sh(1):
|
| Parameter Substitution
| The character $ is used to introduce substitutable
| parameters. There are two types of parameters, positional
| and keyword. If parameter is a digit, it is a positional
|. ^^^^^
| parameter. Positional parameters may be assigned values by
[...]
|digit != number :-)
OOPS! You're right...
OK, so, there *ISN'T* a way to directly access positional parameters
beyond $9 (besides shifting). :-( I'll stay with my hack, then.
Paul.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
: slootman at dri.nl : You are wise, witty and wonderful, but you :
: ...!hp4nl!dri500!slootman : spend too much time reading this sort of trash. :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Comp.unix.shell
mailing list