zsh-workers
 help / color / mirror / code / Atom feed
From: Roland Eggner <edvz2@systemanalysen.net>
To: zsh-workers@zsh.org
Subject: Parameter + prompt expansion %D{%T.%.} parser issue
Date: Mon, 18 Jul 2016 22:31:49 +0200	[thread overview]
Message-ID: <20160718203149.GA11086@mobil.systemanalysen.net> (raw)

[-- 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 --]

             reply	other threads:[~2016-07-18 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-18 20:31 Roland Eggner [this message]
2016-07-19  0:21 ` Mikael Magnusson
2016-07-19  3:48   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160718203149.GA11086@mobil.systemanalysen.net \
    --to=edvz2@systemanalysen.net \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).