Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Strange parameter visibility
- X-seq: zsh-users 21938
- From: kjonca@xxxxx (Kamil Jońca)
- To: zsh-users@xxxxxxx
- Subject: Strange parameter visibility
- Date: Sat, 17 Sep 2016 20:11:37 +0200
- Cancel-lock: sha1:Xs7YIVhVIkNLwQdIG7hwSX+V4bY=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
--8<---------------cut here---------------start------------->8---
%(x=1; x=2 echo | echo $x ; echo $x)
1
1
--8<---------------cut here---------------end--------------->8---
but :
--8<---------------cut here---------------start------------->8---
%(x=1; x=2 | echo $x ; echo $x)
2
2
--8<---------------cut here---------------end--------------->8---
What there are "2"-s in second example?
should'n "x=2" be treated as simple null command with its own
assignement?
KJ
--
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
The rose of yore is but a name, mere names are left to us.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author