bug-bash
[Top][All Lists]
Advanced

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

Re: Bash reference manual errata


From: Chet Ramey
Subject: Re: Bash reference manual errata
Date: Fri, 10 Jul 2020 09:06:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]