zsh-workers
 help / color / mirror / code / Atom feed
* Parameter expansion oddity in 3.1.5-pws-20
@ 1999-05-31 21:35 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1999-05-31 21:35 UTC (permalink / raw)
  To: zsh-workers

zagzig% x="$(<config.h)"
zagzig% y=( ${(f)"$(<config.h)"} )
zagzig% echo $#y
423
zagzig% z=( ${(f)"${x}"} )
zagzig% echo $#z
423

So far so good.

zagzig% z=( ${(f)"$x"} )
zagzig% echo $#z
1
zagzig% echo $z
8769

Eh?  Where did THAT come from?  Oh, 8679 is $$, so that latter is being
parsed as ${(f)$} ... the x is ignored.  That was sort of understandable
when you couldn't use quotes there, but with the quotes it's confusing.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-05-31 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-31 21:35 Parameter expansion oddity in 3.1.5-pws-20 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).