Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] var=$* and var=$@ create array with SHWORDSPLIT and null or unset IFS
- X-seq: zsh-workers 40566
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Martijn Dekker <martijn@xxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] var=$* and var=$@ create array with SHWORDSPLIT and null or unset IFS
- Date: Thu, 16 Feb 2017 21:14:31 -0800
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=mhx9Nf6Ne8ZDeEUAd5oT6Px6w1FA0hBExWnnPK+pUrE=; b=UQ4zwzHnfH3qoS+gK4zatSt7Npk140QlDddO4q0ahjKVbrPJpMVeBugZEFR0GmHvJI qstFCte5mhlwz1qzNhRe2FOc8jLdlsHk1zdXUOhnzwxQQPF1/Ormwvg2brWnrikPvQrE NOR0xsDtPGmBwuz1KwBGIXfS/LYHQu2liwDMExoxUrWHtYZX3ROUAh01qFOk9DCLEtrZ 2xgGVxfO3x4cp3BMg4A0R6KX3RH9zL6X91OGLJ7Ann+Z2O2oPfjbhpPZ6iaMCjeIvIXu z+Wr+k9LxWiHAMY8mwlQZ3riFTPbYhbB4NrBEcMQ1AGRvIYsfvix+Vn2BjAZmD7xhbp3 nl4w==
- In-reply-to: <62e5833f-14b1-b42b-31af-2f1532b565ed@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <62e5833f-14b1-b42b-31af-2f1532b565ed@inlv.org>
On Feb 17, 12:05am, Martijn Dekker wrote:
}
} In SHWORDSPLIT mode, if IFS is null (no field splitting) or unset
} (default fieldsplitting), both var=$* and var=$@ act like var=("$@"), so
} turn 'var' into an array.
This sounded naggingly familiar, and indeed:
30299: "$*" was split with SHWORDSPLIT if IFS was empty or unset
Undoing 30299 fixes the bug Martijn is reporting here, but re-introduces
the incorrect splitting behavior.
I haven't gotten any further with it than that.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author