Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Why are empty elements removed from array expansion?
- X-seq: zsh-users 15666
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Why are empty elements removed from array expansion?
- Date: Wed, 22 Dec 2010 21:46:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1EUKBm3e6UM6JiFNL/0Rf3RBPEf8LP4VTWCbNLCtzBQ=; b=eWf2YZBQmKnYh73x0TfupardmRhgnCP5YwnxaH5p9t/wuXKXUcOAwqERGI3IfMaGjc qiBGCMhRkreEEBjfsCAo66IShQOEa8CqDc2Vrh13sPoXSwE9UMmQQQkZzq/SEZiM01a1 pumF+ehuFyZdl/LkNCfcuhOy/69Zcrj0sbCnY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=X3uvhFax0x2Z7Q3ZR4EaKlvRQhPBauVcGxaoMYvWBpxHvL9qoLS79aSGi615FsTftf E3gN+0wBJ1e7SLVeYATRA4Wy7hYng9Pi/8EF4qKt4fPg3+EPjrAnw/LjIYq8gkAJinGg ZuiINATtZ594H4mXXBNAnC3M8FCR28MEjDYlg=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Sender: nikolai.weibull@xxxxxxxxx
% a=(a '' c); print -l $a
a
c
Why am I forced to use
% print -l "$a[@]"
?
I realize that this wonât change, but it really bugs me that this is
the standard behavior. It should be the other way around, that is,
removing empty elements shouldnât be the default.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author