To get state of a flag in set -o..
by zeroone from LinuxQuestions.org on (#6CX0C)
How do we get state of a flag in set -o ... that has no direct 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.
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.