echo $-

By default, the active flags in the set-builtin are: himBH
Executing help set doesn't show an explanation for the i-flag.

What is behind the i-flag, the i-option respectively?

  • Also see: askubuntu.com/a/660854/158442 – muru Aug 24 '16 at 2:41
  • Checked, you can update your answer there, the active set-builtin-options are in $SHELLOPTS and the active shopt-builtin-options are in $BASHOPTS. – Neni Aug 25 '16 at 12:01

From man bash:

-i        If the -i option is present, the shell is interactive.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.