Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Parameter + prompt expansion %D{%T.%.} parser issue



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: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author