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

Strange parameter visibility



--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