Subject: Parameter + prompt expansion %D{%T.%.} parser issue
From: Roland Eggner <[email-masked]>
To: [email-masked]
Date: Mon, 18 Jul 2016 22:31:49 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

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