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

Re: PATCH: Make ztrftime pass more things to strftime



On Wed, Jul 8, 2015 at 1:15 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> I poked at this for an hour, and this is the first version that passes
> make check and doesn't segfault randomly, so it is not very well tested,
> to say the least. Opinions on the approach?

Hey look, it actually works too,

% print -P %D\{%x\}
2015年07月08日
% print -P %D\{%Ex\}
平成27年07月08日

I guess my little case+goto should include '-' too, or it defaults
into strftime early if it's not the first modifier.

-- 
Mikael Magnusson



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