Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
z parameter expansion flag is broken?
- X-seq: zsh-workers 41654
- From: Yuya Amemiya <ghostrevery@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: z parameter expansion flag is broken?
- Date: Sat, 09 Sep 2017 04:13:03 +0900 (JST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:subject:from:mime-version :content-transfer-encoding; bh=IEgdOC96J9qHvbiq7OnlkvJKGa5MhjVDNVCGydSDnSY=; b=cXElBLgbC7tvXcfM/N16qjkxbb6buwe2PC6HVLITFGuI2BTyr1qcm0Wl9qPykglmxn yrwas7kCKzE2qPU2laQsy1BgcI6GAHy/fTIxqCiIwXUV6iGroa0Ez5aKx/gUc7uvQrlp 2iKIa1RxWEf2q5TSWnCta7lMBAMQfA0rnZYEsYqPFX5bm7NCbpi9RNeH2MccA67Gn8TI Xdju9GZXYtheKC1G4CFjyU9ZM8WyPlVYP8rYsxWY7RE1OkbpYO2m111SfV1PCS3Gwdr/ YoNWQiv7c6yGh420ovjV9Niqyy6yObY9uxQRLaBr7INsA/JhGNZ7lXPeGxsM607V1sf1 +fpA==
- 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
Why does z parameter expansion flag remove leading '-' from result?
in zsh 5.4.1
```
$ echo ${(z):--a}
a
$ echo ${(q):--a}
-a
```
in zsh 5.3.1
```
$ echo ${(z):--a}
-a
$ echo ${(q):--a}
-a
```
regards
--
Yuya Amemiya <ghostrevery@xxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author