Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

f() { local -ar path=(/bin); };f gives an error



FYI,

someone reported this on unix.stackexchange.com:
https://unix.stackexchange.com/questions/407125/why-cant-i-define-a-readonly-variable-named-path-in-zsh

Which looks like a bug:

$ zsh -c 'f() { local -ar path=(/bin); }; f'
f: read-only variable: path
$ /zsh --version
zsh 5.4.2-dev-0 (x86_64-unknown-linux-gnu)

See also the answer there by someone would did some investigation already.

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author