An undefined feature would behave like this:

dash$ nosuch y=$x
dash: nosuch: not found

not like this:

dash$ local y=$x
local: 2: bad variable name

The dash shell is attempting to implement "local", and it's broken.
If "local" isn't part of POSIX, and dash is supposed to be POSIX, then
removing "local" completely from dash would be fine.  Implementing "local"
incorrectly is not fine.  Non-POSIX words should generate "command not
found", not a shell parsing error.

-- 
dash 0.5.3-5ubuntu2 variable expansion error using local
https://bugs.launchpad.net/bugs/139097
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to