| GNU Bash Reference Manual by Chet Ramey and Brian Fox Paperback (6"x9"), 180 pages ISBN 0954161777 RRP £19.95 ($29.95) "An essential resource .... the most detailed coverage available for all aspects of Bash" --- Linux User and Developer Magazine (Issue 37, Mar 2004) Get a printed copy>>> |
3.4.1 Positional Parameters
A positional parameter is a parameter denoted by one or more
digits, other than the single digit 0. Positional parameters are
assigned from the shell's arguments when it is invoked,
and may be reassigned using the set builtin command.
Positional parameter N may be referenced as ${N}, or
as $N when N consists of a single digit.
Positional parameters may not be assigned to with assignment statements.
The set and shift builtins are used to set and
unset them (see section 4 Shell Builtin Commands).
The positional parameters are
temporarily replaced when a shell function is executed
(see section 3.3 Shell Functions).
When a positional parameter consisting of more than a single digit is expanded, it must be enclosed in braces.
| ISBN 0954161777 | GNU Bash Reference Manual | See the print edition |