zsh-workers
 help / color / mirror / code / Atom feed
* [bug] zsh/datetime strftime bug
@ 2007-12-09  0:49 antho.charles
  2007-12-09  3:14 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: antho.charles @ 2007-12-09  0:49 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-09 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-09  0:49 [bug] zsh/datetime strftime bug antho.charles
2007-12-09  3:14 ` Mikael Magnusson
2007-12-09 14:53   ` Peter Stephenson

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).