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
  • 12
    It should be noted that function support was added to the Korn shell before the Bourne shell introduced its foo() command syntax, and the Bourne syntax was later added to the Korn shell for compatibility. Commented Apr 29, 2013 at 11:54
  • @StéphaneChazelas If so then is the statement This is the ksh form of function definition created to extend the Bourne and POSIX form with modified behaviors and additional features like local variables. at wiki.bash-hackers.org/scripting/obsolete wrong? Commented Oct 19, 2021 at 7:32
  • @PiotrDobrogost, yes, it is wrong. The rest of that page seems also to reflect the opinion of one person (from history, looks like @ormaaj who's also present on this site), not the position of the bash maintainer. There are quite a few other points I don't agree with. Commented Oct 22, 2021 at 8:30