bug-bash
[Top][All Lists]
Advanced

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

Re: -i option of set missing in man bash


From: Chet Ramey
Subject: Re: -i option of set missing in man bash
Date: Fri, 20 Mar 2015 16:21:47 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/16/15 4:30 PM, Eduardo A. Bustamante López wrote:
>> Here's the other side: allowing `set -$-' to succeed keeps a Posix-mode
>> shell running a script from throwing a fatal error.  Allowing it also
>> keeps the bug reports down.  The same rationale can be used to add -c and
>> -s to the no-op flags, since those are command-line options that end up
>> in $-.
> I know this following line of thought doesn't help much, but, have you really
> seen that used in the wild?

I can't really say, since I only get the bug reports.  If a thing works,
and people use it, I'll never hear about it.

I'm going to try making `-i' an invalid option to set and go from there.
I can always make it a no-op in an interactive shell later.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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