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
  • 6
    As it happens, dash has been known to go back and forth on that (skipping the fork for the last command in inline script). ksh used to skip the fork even when there was a trap on EXIT installed which meant it was not run then. Commented Jan 10, 2024 at 13:15
  • 1
    Excellent answer, but I can't stand mentioning the Hyrum's law ;-) Commented Jan 11, 2024 at 15:45
  • @kostix While that's true (and we do try to avoid breaking those cases in kernel), it at least affords more freedom than making everything explicitly ABI :-) Commented Jan 11, 2024 at 22:12