Article 6CX0C To get state of a flag in set -o..

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.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments