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

[bug] zsh/datetime strftime bug



Hi zsh workers !

I think I found a bug in strftime:

baha@Saito% zsh -f
Saito%zmodload zsh/datetime
Saito% strftime '%T %x' $EPOCHSECONDS
23:04:17
Saito% strftime '%T%x' $EPOCHSECONDS
23:05:2408.12.2007
Saito% strftime '%x %T' $EPOCHSECONDS
08.12.2007 23:06:02

I don't get the value of %x in the first output. If I loop the strftime
command, I get sometimes some garbage characters.

Saito% for i in {1..10}; strftime '%T %x' $EPOCHSECONDS && sleep 2
23:12:06 �
23:12:08
23:12:10 �
23:12:12


-- 
Anthony CHARLES



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