"local" is a shell reserved word, isn't it?

Paul Smith paul at mad-scientist.net
Sun Nov 21 23:39:51 UTC 2010


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.




More information about the busybox mailing list