From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17284 invoked from network); 17 Feb 2000 10:31:08 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Feb 2000 10:31:08 -0000 Received: (qmail 10941 invoked by alias); 17 Feb 2000 10:30:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9771 Received: (qmail 10917 invoked from network); 17 Feb 2000 10:30:55 -0000 Date: Thu, 17 Feb 2000 11:30:51 +0100 (MET) Message-Id: <200002171030.LAA22079@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk Subject: Oh no, parameter expansion 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