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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to