|
From: | Chet Ramey |
Subject: | Re: How do we get state of a flag in set -o ... |
Date: | Wed, 12 Jul 2023 09:45:05 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 7/11/23 5:15 PM, alex xmb ratchev wrote:
On Tue, Jul 11, 2023, 22:05 Greg Wooledge <greg@wooledge.org> wrote:On Wed, Jul 12, 2023 at 02:54:10AM +0700, Budi wrote:How do we get state of a flag in set -o ... that has no directly alias set [-+] , e.g. set -o posix or set -o vi ? not, e.g. set -o errexit , as it can be retrieved by echo $-Parse the output of "set -o".i was trying some simple code but fatally failed
This is a bad approach. -- ``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/
[Prev in Thread] | Current Thread | [Next in Thread] |