zsh-workers
 help / color / mirror / code / Atom feed
* f() { local -ar path=(/bin); };f gives an error
@ 2017-11-26 23:21 Stephane Chazelas
  2017-11-26 23:28 ` Eric Cook
  0 siblings, 1 reply; 7+ messages in thread
From: Stephane Chazelas @ 2017-11-26 23:21 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-29 22:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-26 23:21 f() { local -ar path=(/bin); };f gives an error Stephane Chazelas
2017-11-26 23:28 ` Eric Cook
2017-11-27 20:17   ` Stephane Chazelas
2017-11-27 21:03     ` Eric Cook
2017-11-27 21:34       ` Bart Schaefer
2017-11-27 21:35         ` Bart Schaefer
2017-11-29 22:12         ` Stephane Chazelas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).