From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 717 invoked from network); 12 Jan 1998 16:36:42 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 12 Jan 1998 16:36:42 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id LAA03727; Mon, 12 Jan 1998 11:16:23 -0500 (EST) Resent-Date: Mon, 12 Jan 1998 11:16:00 -0500 (EST) From: Andrew Main Message-Id: <199801121515.PAA11821@taos.demon.co.uk> Subject: Re: Exporting arrays To: eggink@rrz.uni-hamburg.de (Bernd Eggink) Date: Mon, 12 Jan 1998 15:15:00 +0000 (GMT) Cc: zefram@tao.co.uk, adam.spiers@new.ox.ac.uk, zsh-users@math.gatech.edu In-Reply-To: <34BA1F3D.18EE4BAB@rrz.uni-hamburg.de> from "Bernd Eggink" at Jan 12, 98 02:48:45 pm X-Loop: zefram@tao.co.uk X-Headers: in preparation X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"7Ff1F3.0.hv._6akq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1221 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bernd Eggink wrote: > a=(${(s(:))aex}) > >Unfortunately this doesn't work if an array element is empty! Example: Both behaviours are useful. What would really be nice would be to make the delimiter a glob pattern, so that both behaviours (and more) are available. That would make the default behave the way you want it, which is probably better overall, because if one really wanted the other form of splitting then this would become immediately obvious. -zefram