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.

2
  • 2
    What should I do when someone answers my question? Commented Jun 15, 2019 at 4:04
  • 1
    Note that function funcname { is legacy ksh function declaration syntax -- a pre-POSIX convention that bash partially supports for backwards compatibility (without implementing the special behavior around locals that ksh associated with this syntax); for new code, example() { ...; } should be strongly considered for use instead. See wiki.bash-hackers.org/scripting/obsolete Commented Jun 16, 2019 at 4:42