What does $- mean in Bash?

$- prints The current set of options in your current shell.

himBH means following options are enabled:

  • Hhistexpand: when history expansion is enabled
  • mmonitor: when job control is enabled
  • hhashall: Locate and remember (hash) commands as they are looked up for execution
  • Bbraceexpand: when brace expansion is enabled
  • iinteractive: when current shell is interactive

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)