zsh-workers
 help / color / mirror / code / Atom feed
* Parameter + prompt expansion %D{%T.%.} parser issue
@ 2016-07-18 20:31 Roland Eggner
  2016-07-19  0:21 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Eggner @ 2016-07-18 20:31 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

emulate -R zsh -c 'print -l ${(%):-%D{%T.%.} %~} "${(%):-%D{%T.%.} %~}" ${(%):-"%D{%T.%.} %~"}'

Expected:
22:03:02.324 ~
22:03:02.324 ~
22:03:02.324 ~

Observed:
22:03:02.324 ~
22:03:02.324 %~}
22:03:02.324 ~


Note the trailing “%~}” in the 2nd line.

ZSH_PATCHLEVEL=zsh-5.2-282-ga22f4ea
uname -m -o
x86_64 GNU/Linux

Usage error?  Bug?  Feature?



-- 
Best regards
Roland Eggner

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

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

end of thread, other threads:[~2016-07-19  3:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 20:31 Parameter + prompt expansion %D{%T.%.} parser issue Roland Eggner
2016-07-19  0:21 ` Mikael Magnusson
2016-07-19  3:48   ` Bart Schaefer

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).