[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do we get state of a flag in set -o ...
From: |
Emanuele Torre |
Subject: |
Re: How do we get state of a flag in set -o ... |
Date: |
Tue, 11 Jul 2023 23:00:05 +0200 |
User-agent: |
Mutt/2.2.10 (2023-03-25) |
On Wed, Jul 12, 2023 at 02:54:10AM +0700, Budi wrote:
> EDIT:
>
> 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 $-
>
> then it'll be determined if letter e exists at the output string .
> Please help sincerely.
>
test/[/[[ have a -o option for that:
[[ -o posix ]]
[ -o vi ]
test -o errexit
o/
emanuele6
- Re: How do we get state of a flag in set -o ..., (continued)
- Re: How do we get state of a flag in set -o ..., Grisha Levit, 2023/07/11
- Re: How do we get state of a flag in set -o ..., Greg Wooledge, 2023/07/11
- Re: How do we get state of a flag in set -o ..., Kerin Millar, 2023/07/11
- Re: How do we get state of a flag in set -o ..., alex xmb ratchev, 2023/07/11
- Re: How do we get state of a flag in set -o ..., Kerin Millar, 2023/07/11
- Re: How do we get state of a flag in set -o ..., Chet Ramey, 2023/07/12
- Re: How do we get state of a flag in set -o ..., alex xmb ratchev, 2023/07/13
- Re: How do we get state of a flag in set -o ..., Chet Ramey, 2023/07/12
Re: How do we get state of a flag in set -o ...,
Emanuele Torre <=
Re: How do we get state of a flag in set -o ..., Chet Ramey, 2023/07/12