As dash is used to replace bash for non-interactive shells, dash should reproduce the bash syntax of the `local` keyword as best as it can.
I agree with Dan's comment #7 "the above DASH behaviour is broken, for all three uses "local", "export", and "readonly". BASH is correct, and DASH should be fixed." The "local" keyword should not change anything to the required syntax of the assignment, e.g. if `y=$x` works, `local y=$x` must work also! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/139097 Title: dash variable expansion error using local, readonly, and export To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/139097/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
