Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
${^var} and word splitting
- X-seq: zsh-users 19422
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-users@xxxxxxx>
- Subject: ${^var} and word splitting
- Date: Mon, 24 Nov 2014 09:56:37 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=ZKKQ9qFC9llI8am/jacSf/j0o25mde+aJB3RDmyFQyE=; b=U/WQfSSHHjgR5n25LTT3SuX+V+6EZwwPeNPHCx4AWbVL1WQheG+icu2FDkrkCCCIwp 7efOo4O/9KQSY1gp6l0F355hseu44AwH8mEjuqOfKUOdkEk/X63WLPLN2sJR2ZD7Y+b9 MuQx84FnUedneyvVk1kzLv9tY6PIzwymiL/YY8dCbInvhUlvyYL7tVNwUqWdiElmtcey 2h5/oPIrOvQr2X6++KTPmw4wfK8ctYkbJYiTCCxg+hIE3LAgD1TXl/Icx7R4RR1h0LzT kdpSv/MCliYMa2miJcYOTa7YC/lbcXcy5UcFrnzBTt+PxuL/c7CERiJatXzz1lTr/PL7 UvoQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
$ a=' 1 2 3 '
$ print -l $=a
1
2
3
$ print -l x$^=a
x
x1
x2
x3
x
$ print -l x${^${=a}}
x1
x2
x3
Why the extra "x" lines with x$^=a ?
Same for the (s:sep:) or (f) expansion flags.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author