zsh-users
 help / color / mirror / code / Atom feed
* Strange parameter visibility
@ 2016-09-17 18:11 Kamil Jońca
  2016-09-18  1:42 ` Eric Cook
  0 siblings, 1 reply; 3+ messages in thread
From: Kamil Jońca @ 2016-09-17 18:11 UTC (permalink / raw)
  To: zsh-users


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


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

end of thread, other threads:[~2016-09-18  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-17 18:11 Strange parameter visibility Kamil Jońca
2016-09-18  1:42 ` Eric Cook
2016-09-18  4:37   ` Bart Schaefer

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