On 7/10/20 4:24 AM, 홍홍 wrote:
> In Bourne shell
> builtin(https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins
> <https://www.gnu.org/software/bash/manual/bash.html#Bourne-Shell-Builtins>),
> shift command
>
>
> "Parameters represented by the numbers $# to $#-n+1 are unset."
>
> should be
>
> "Parameters represented by the numbers $1 to $#-n+1 are unset."
No, the existing text is correct. If you have six positional parameters,
so $# == 6, and you execute `shift 2', $5 and $6 are unset.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/