Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: array1=array2 ???
- X-seq: zsh-users 11091
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: array1=array2 ???
- Date: Mon, 18 Dec 2006 07:16:05 +0100
- In-reply-to: <20061218033409.GI21950@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20061218.043009.41640189.Meino.Cramer@xxxxxx> <20061218033409.GI21950@xxxxxxxxxxxxxxx>
Frank Terbeck a écrit :
b=( $a )
Regards, Frank
not really : b is a 'compressed" a (without empty elements) . you must
use "$a[@]" to preserve all elements.
> a=( a '' c ); b=( $a ); c=( "$a[@]")
> echo $#a $#b $#c
3 2 3
HTH,
mc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author