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

Re: ztrftime and prompt



"Owen M. Astley" wrote:
> Although the man page says that prompts with %D{...} are printed using
> strftime, they are parsed by ztrftime first.
> 
> Is it worth while documenting ztrftime, or is this likely to change?

It should really be documented.  In most cases the only differences from a
normal strftime() are the ones listed in the %D prompt expansion, and the
extra code is just to provide a fallback, but if an external strftime() is
not available there's no documentation at all, and if it's defective the
extra ones provided by zsh aren't documented.  There could even be clashes
with a non-standard strftime.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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