Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14783
| From | Grisha Levit <grishalevit@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: exiting noninteractive shells on 'shift 2' |
| Date | 2018-11-08 19:11 -0500 |
| Message-ID | <mailman.3682.1541722323.1284.bug-bash@gnu.org> (permalink) |
| References | <cd413815-9523-f280-3ef3-fcd21bf7119e@redhat.com> |
On Thu, Nov 8, 2018, 3:48 PM Eric Blake <eblake@redhat.com> wrote: > If the n operand is invalid or is greater than "$#", this may be > considered a syntax error and a non-interactive shell may exit; if the > shell does not exit in this case, a non-zero exit status shall be > returned. This seems to say that "shift N" *may* be considered an error *in which case* the rules in 2.8.1 must apply. But since bash does not consider it to be an error, it behaves as the second half of the sentence proscribes and returns a non-zero status. >
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: exiting noninteractive shells on 'shift 2' Grisha Levit <grishalevit@gmail.com> - 2018-11-08 19:11 -0500
csiph-web