Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
f() { local -ar path=(/bin); };f gives an error
- X-seq: zsh-workers 42051
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: f() { local -ar path=(/bin); };f gives an error
- Date: Sun, 26 Nov 2017 23:21:01 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=dFp3ZNssMIcG/cgiaO9xty6aKK3MYK4e4k6UZsizTPI=; b=PbLAMFk4cXsoXvCPyaFOSYB36pnMW1AI8SCXnK/oZrZ0DULYxW75fzjLD70AOKbHvt y+0m4y+9UbtnJiP+MK7n8GAZPNpYusoj7aEaU1RkHN7EHiuorGwGA2kVIG4wZKqMxmdz AjxVGzZOoCfCnGVR+FcXt5k9YwOGfJ980SebEdnT5kYV6M1gSj42OABPGglcPLgIT+IK 6MCOLRfD0Pu7/xlnWndt2xLKfheeT09u3pyIPb+PKH35e+L0yYOjhJkJV3+D3C0/ni6F hMUUcgLmbZiHDo19LNZDBOEf0Pgjoy8cFG0LKBm+kvMDU4xp+DR/ApVeANwRE4WoiUUL Y+9w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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