My recommendation is to remove support for "local". Not only does it not work properly, as shown by this bug, but it can cause valid POSIX shell scripts to not behave correctly (for example, if I have a program "local" on my PATH it is ignored by dash--"local" is not a reserved word in POSIX so this should not fail).
You're right; my mistake.
My recommendation is to remove support for "local". Not only does it not work properly, as shown by this bug, but it can cause valid POSIX shell scripts to not behave correctly (for example, if I have a program "local" on my PATH it is ignored by dash--"local" is not a reserved word in POSIX so this should not fail).
See bug #217981