Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16560
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Bash reference manual errata |
| Date | 2020-07-10 09:06 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.42.1594386423.2306.bug-bash@gnu.org> (permalink) |
| References | <C1E78C9C-3460-4F69-A0E0-77CDCDCFED03@gmail.com> <50b254a1-90e8-d1ca-264d-312caf9ea443@case.edu> |
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/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Bash reference manual errata Chet Ramey <chet.ramey@case.edu> - 2020-07-10 09:06 -0400
csiph-web