zsh-workers
 help / color / mirror / code / Atom feed
* z parameter expansion flag is broken?
@ 2017-09-08 19:13 Yuya Amemiya
  2017-09-09 16:53 ` Bart Schaefer
  2017-09-10 16:42 ` Peter Stephenson
  0 siblings, 2 replies; 5+ messages in thread
From: Yuya Amemiya @ 2017-09-08 19:13 UTC (permalink / raw)
  To: zsh-workers

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@gmail.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-11 10:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 19:13 z parameter expansion flag is broken? Yuya Amemiya
2017-09-09 16:53 ` Bart Schaefer
2017-09-09 22:45   ` Bart Schaefer
2017-09-11 10:44     ` Peter Stephenson
2017-09-10 16:42 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).