On Mon, 2010-11-22 at 00:25 +0100, Cristian Ionescu-Idbohrn wrote: > Different shells (ash, dash, bash) handle the above in an unexpected > way. I would have expected a consistent: > > foo: line 7: syntax error: bad function name "local" is not a reserved word in POSIX. There is no "local" keyword or definition in the POSIX shell.