Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$^=var and leading/trailing blanks
- X-seq: zsh-workers 39589
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: $^=var and leading/trailing blanks
- Date: Sat, 8 Oct 2016 16:12:44 +0100
- 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-disposition:user-agent; bh=AdO9WLs0jx9A9uDoaIg3eEpb4r+hYtEJNhi7as/VloM=; b=H74k/Bs8AYVafrhPSyHNQmvqunyLSn47eBPcVvTcvFAwmnmMJ0AWrmuJlcckO85rUe 56HPPJXo/g81djuL6QWveB2QKGJduiNVd5+8eblJ0z+3rRQmasVweU7MMdsTd1bgRezG HFZA0bEBfvxfF8U3RN3JWWk9JQh/xVpPzym7U9ATRtYxvx+7Eqn5d/ArEHICliTt2Z3C YwcqbmuGpIpNiVV2rsqI1OjL6EIlGc/pY1m3JvUDCWdyKGa3roiG7y/yRQEjXmiyfben TjGGtVa2dgOQMM+zDasVzy1TEzM8QGSKXACofQDlcZQMsSj3uQywfPwGxQQWBiWozfn+ 3IDA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
$ a=' a b '
$ print -l +$^=a
+
+a
+b
+
$ print -l "${(@)^=a}"
a
b
$ print -l +${^${=a}}
+a
+b
Why the extra first and last element the the first two commands?
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author