Public bug reported:
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://tinyurl.com/yps6vl doesn't mention a "function" keyword at all,
whereas e.g. http://www.unix.org.ua/orelly/unix/ksh/appa_02.htm implies
that this functionality is specified in POSIX.
** Affects: dash (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
dash doesn't understand the function keyword
https://launchpad.net/bugs/82468
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs