[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using set +o posix unsets POSIXLY_CORRECT, even when POSIXLY_CORRECT
From: |
Chet Ramey |
Subject: |
Re: using set +o posix unsets POSIXLY_CORRECT, even when POSIXLY_CORRECT is a read only variable |
Date: |
Sun, 3 Jan 2016 14:33:17 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 12/31/15 7:04 PM, nerdopolis wrote:
> I tested on
> 4.2.45(1)-release
>
> basically I have tested
> nerdopolis@nerdopolis:~$ readonly POSIXLY_CORRECT=1
> nerdopolis@nerdopolis:~$ set +o posix
> nerdopolis@nerdopolis:~$ echo $POSIXLY_CORRECT
>
> nerdopolis@nerdopolis:~$
>
> Although I will admit I'm not sure if it's supposed to do that or not
Yes, it does, and yes, it's the intended behavior.
--
``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/