bug-bash
[Top][All Lists]
Advanced

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

Re: exiting noninteractive shells on 'shift 2'


From: Chet Ramey
Subject: Re: exiting noninteractive shells on 'shift 2'
Date: Fri, 9 Nov 2018 11:42:30 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.3.0

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/



reply via email to

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