Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Oh no, parameter expansion
- X-seq: zsh-workers 9771
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Oh no, parameter expansion
- Date: Thu, 17 Feb 2000 11:30:51 +0100 (MET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author