zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Time in prompt not shown, when %P used (promptinit)
Date: Thu, 29 Oct 2015 16:15:03 -0700	[thread overview]
Message-ID: <CAH+w=7bmE7wNK4Ap1AxiMLVT8+0iOS0mDFp1p0Gt1BPnPBbnTg@mail.gmail.com> (raw)
In-Reply-To: <CADn-QaMCg6PGv5hLy8+-1NrWVOP1FWigi2PvU0z2RDuX0okJMQ@mail.gmail.com>

On Thu, Oct 29, 2015 at 1:09 AM, Alexander Skwar
<alexanders.mailinglists+nospam@gmail.com> wrote:
>
> I'm using zsh 5.1.1-1ubuntu1 on Ubuntu 15.10.
>
> Before Ubuntu 15.10, I had 14.04 and after the date ("Don Okt 29"), there
> used to be the time. The time is now missing

What version of zsh were you using on 14.04?

I suspect this is a problem introduced when time formatting was
changed to attempt to pass more of the format sequences directly
through to strftime().  We have had this sort of problem come up for
some other formats, depending on the strftime() implementation.

The %P string was always expected to be expanded by strftime and for a
long time (2004 - 2014) was simply ignored if it was empty (prior to
2004 it could cause a segfault).  I'm guessing that now it's being
incorrectly interpreted as an error and therefore aborting the entire
%D{...} replacement.


      reply	other threads:[~2015-10-29 23:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29  8:09 Alexander Skwar
2015-10-29 23:15 ` Bart Schaefer [this message]

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='CAH+w=7bmE7wNK4Ap1AxiMLVT8+0iOS0mDFp1p0Gt1BPnPBbnTg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).