List of shells that support `local` keyword for defining local variables
23
votes
2
answers
9079
views
I know that Bash and Zsh support
local
variables, but there are systems only have POSIX-compatible shells. And local
is undefined in POSIX shells.
So I want to ask which shells support local
keyword for defining local variables?
**Edit**: About shells I mean the default /bin/sh
shell.
Asked by mja
(1525 rep)
Jan 10, 2019, 02:13 PM
Last activity: Aug 1, 2025, 01:19 PM
Last activity: Aug 1, 2025, 01:19 PM