Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace local keyword with typeset -l #5

Closed
siteshwar opened this issue Jun 26, 2018 · 2 comments
Closed

Replace local keyword with typeset -l #5

siteshwar opened this issue Jun 26, 2018 · 2 comments

Comments

@siteshwar
Copy link

local keyword is available only when ksh is compiled with bash emulation mode. We have disabled it in upstream through att/ast#611, so use typeset -l instead of local in your scripts.

@rocky rocky closed this as completed in dfe522b Jun 26, 2018
@rocky
Copy link
Collaborator

rocky commented Jun 26, 2018

Think I got them all in dfe522b , but double check and reopen if I've missed something. Thanks.

@rocky
Copy link
Collaborator

rocky commented Jun 26, 2018

One other thing I should mention. The reason I have typically favored local over typeset -l is because zsh doesn't havetypeset -l, both bash and zsh support local, even though that's not POSIX.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants