Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    You mean bash -$- so you're passing the options as options instead of attempting to run a file named "$-" Commented Aug 19, 2017 at 21:11
  • Thanks, Hauke! I wonder if I misunderstand the manual? It doesn't explicitly mention set options, so I think "Unless otherwise noted, the values are inherited from the shell" applies to set options. Am I missing something? Commented Aug 21, 2017 at 0:43
  • @Tim I guess your misunderstanding is "execution environment". The environment is external to a running binary, the shell options are internal. This paragraph is about simple commands in general. Calling a shell explicitly is a very special case. Commented Aug 21, 2017 at 8:12