zsh-workers
 help / color / mirror / code / Atom feed
* Oh no, parameter expansion
@ 2000-02-17 10:30 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-02-17 10:30 UTC (permalink / raw)
  To: zsh-workers


Remember our fight to get arrays in nested parameter expansions right?
I just found another on of those:

  % a=(aaa b c)
  % echo ${(M)a[1,1]:#aaa}
  3

That's because $a[1,1] gives a string instead of an array. We could
remove the `a == b' in params.c:1160 to avoid that, but I don't know
what this would break.

And one more:

  % a=::: b=_foo
  % echo ${a/::/:${b#_}:}
  :::

It works with $b[2,-1], haven't investigated any further.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

only message in thread, other threads:[~2000-02-17 10:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-17 10:30 Oh no, parameter expansion Sven Wischnowsky

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