Skip to main content
Tweeted twitter.com/StackUnix/status/1171347714283626496
edited title
Link
Stéphane Chazelas
  • 584.8k
  • 96
  • 1.1k
  • 1.7k

List of shells that support `local` keyword for defining local variables

added 17 characters in body
Source Link
mja
  • 1.5k
  • 2
  • 15
  • 26

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.Edit: About shells I mean the default /bin/sh shell.

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.

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.

added 58 characters in body
Source Link
mja
  • 1.5k
  • 2
  • 15
  • 26

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.

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?

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.

Source Link
mja
  • 1.5k
  • 2
  • 15
  • 26
Loading