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*

2
  • 1
    Aside: Just because I'm copying your lead and using .sh extensions on executables (that is, files with the +x permission against which an execv()-family call will succeed) doesn't mean it's a good idea. In general, commands in UNIX shouldn't have any extensions, no matter whether they're provided via a shell script, a Python script, a compiled binary, etc. Commented May 6, 2015 at 20:15
  • Can you explicitly clarify whether this is for code using #!/bin/sh or #!/bin/bash? Commented May 6, 2015 at 20:21