Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14787 > unrolled thread

Re: exiting noninteractive shells on 'shift 2'

Started byChet Ramey <chet.ramey@case.edu>
First post2018-11-09 11:42 -0500
Last post2018-11-09 11:42 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: exiting noninteractive shells on 'shift 2' Chet Ramey <chet.ramey@case.edu> - 2018-11-09 11:42 -0500

#14787 — Re: exiting noninteractive shells on 'shift 2'

FromChet Ramey <chet.ramey@case.edu>
Date2018-11-09 11:42 -0500
SubjectRe: exiting noninteractive shells on 'shift 2'
Message-ID<mailman.3754.1541781763.1284.bug-bash@gnu.org>
On 11/9/18 11:22 AM, Eric Blake wrote:
> On 11/9/18 8:52 AM, Chet Ramey wrote:
>> On 11/9/18 9:47 AM, Eric Blake wrote:
>>
>>> Well, there's STILL a conformance issue - the standard requires that unless
>>> documented otherwise, any time a command line tool exits with non-zero
>>> status, that it outputs a message to stderr explaining the error.
>>
>> Where?
>>

>     A diagnostic message shall be written to standard error whenever an
> error condition occurs."
> 
> Since 'shift 2' when $# is 1 is an error, and results in non-zero status,
> it should print a diagnostic to stderr.

So maybe the thing to do is to turn on the shift_verbose option in posix
mode.

-- 
``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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web