zsh-users
 help / color / mirror / code / Atom feed
* expansion of nested parameters
@ 1999-11-22 19:02 Phil Pennock
  1999-11-22 19:34 ` Zefram
  1999-11-22 20:14 ` Bart Schaefer
  0 siblings, 2 replies; 3+ messages in thread
From: Phil Pennock @ 1999-11-22 19:02 UTC (permalink / raw)
  To: Zsh Users

Hiya, quick question:

Not on list these days, please CC me in on replies - thanks.

This is with zsh-3.0.7:
-----------------------------< cut here >-------------------------------
#!/bin/zsh -f
a=foo
wib_foo_ble=Wow
c=\$wib_${a}_ble
print ${(e)c}
print ${(e)\$wib_${a}_ble}
-----------------------------< cut here >-------------------------------

1: Why does the second print statement print out the current process ID
   from $$ instead of printing the same as the first print statement?

2: Is there a way to do this without using an intermediate variable, as
   I've done with $c and without using eval statements?

For now, since the job needs doing, I'm using an intermediate, but the
perfectionist in me wants to know what I was doing wrong?

Or is the answer really obvious, and it's my fault for not using zsh so
heavily these days?  :^)

Thanks folks,
-- 
--> Phil Pennock (!PP8185)


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

end of thread, other threads:[~1999-11-22 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22 19:02 expansion of nested parameters Phil Pennock
1999-11-22 19:34 ` Zefram
1999-11-22 20:14 ` 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).