dash doesn't understand the function keyword
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Invalid
|
Undecided
|
Forest Bond |
Bug Description
Binary package hint: dash
Not sure if this is properly a POSIX conformance bug, but all of my shell scripts where I have used "function fnord { ... }" stopped working after I upgraded to Edgy.
Turns out dash does have functions, but it only understands the "fnord () { ... }" syntax.
Because of this, I had to change a large number of scripts, including my X session login, which wouldn't work because it bailed out with a syntax error.
I've been unable to find a definite reference on whether one or both syntaxes are properly POSIX 1003.2. For example, http://
Changed in dash: | |
status: | Unconfirmed → Rejected |
assignee: | nobody → forest-alittletooquiet |
The function keyword is a bash-ism. See http:// uwsg.ucs. indiana. edu/usail/ eds3shell/ syntax. html; documentation on that page is Bourne- shell-specific.
-Forest