[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Why bash has two sets of options (controlled by `set' an
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Why bash has two sets of options (controlled by `set' and `shopt') |
Date: |
Mon, 26 Oct 2015 12:24:46 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 10/26/15 11:32 AM, Eduardo A. Bustamante López wrote:
> On Mon, Nov 09, 2015 at 09:38:51PM +0800, ziyunfei wrote:
>> But some options like "keyword", "onecmd" and "errtrace" are not in the
>> POSIX standard.
>
> That's true. I don't know the answer to that. Let's wait for Chet to reply.
They exist so all the single-letter `set' options have `set -o'
equivalents. I added `set -E' (errtrace) so it would be parallel to
`set -e'; it's not in Posix. If I had to do it again, I probably would
not add it to `set' at all.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/