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*

5
  • Why can you not use bash? (add to your question) Commented Mar 31, 2019 at 10:54
  • I can not reproduce your issue using /bin/sh on a BSD system. There is nothing in this code that would require bash. Commented Mar 31, 2019 at 10:57
  • My apologies. In trying to create a minimized sample of the actual issue, i made some errors. I updated the code sample now, and it should reflect the problem correctly now. The example indeed does not require Bash. Commented Mar 31, 2019 at 11:09
  • @Steiner In fact, it would have the same issue in bash. Commented Mar 31, 2019 at 11:21
  • 4
    There is no Bourne shell on the BSDs. Nor is the Bourne shell standard. Do not conflate the Bourne shell with a POSIX-conformant sh. Commented Mar 31, 2019 at 11:29