Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Make ztrftime pass more things to strftime
- X-seq: zsh-workers 35744
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Make ztrftime pass more things to strftime
- Date: Thu, 09 Jul 2015 09:41:22 +0100
- In-reply-to: <CAHYJk3RtTe-Mo=OPi4z31Y=WW0kocYmYXNpQ1x8k=pnjZu889w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <1436310900-9519-1-git-send-email-mikachu@gmail.com> <CAHYJk3TnDVEUVuGSec7j5j7ATqtkFwMJcT-7WucH8sRdMv=X9g@mail.gmail.com> <20150708115312.4c81944e@pwslap01u.europe.root.pri> <CAHYJk3RtTe-Mo=OPi4z31Y=WW0kocYmYXNpQ1x8k=pnjZu889w@mail.gmail.com>
There's not a particularly obvious way to skip an individual test,
though it might be time we added one (that ought to be easy). You just
print a warning to the control fd in that case, and do any comparison
with input internally rather than relying on comparing with the sections
after the status.
You can test arbitrary dates with
%%zmodload zsh/datetime
% strftime "%Y" 0
1970
but you need to fail gracefully if zsh/datetime isn't available, too.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author