Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[bug] zsh/datetime strftime bug
- X-seq: zsh-workers 24193
- From: antho.charles@xxxxxxxxx
- To: zsh-workers@xxxxxxxxxx
- Subject: [bug] zsh/datetime strftime bug
- Date: Sun, 9 Dec 2007 01:49:23 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:subject:message-id:mime-version:content-type:content-disposition:content-transfer-encoding:user-agent:from; bh=gi8GcNzxkREPYzkO4xvg3zprCC8ITNxs5i83o1AB1nc=; b=dUbv6A7eMgfKWaDue/89D8o4f9v7ZnyigfXJZ5mQR/D6w+43KCsT/aKV1Du7Gytr+0pxGNmsrlyW/aqlmjlJCWUaHnDhX04wilMzUMU4ghz5Rke8F8kX21oSKgZW4R0KTx/mD6+YzvXELfI2VgxHEwXp+3Do8+ri/C+f6KhgYks=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:message-id:mime-version:content-type:content-disposition:content-transfer-encoding:user-agent:from; b=icPgl1MCBFoOU8Xxaa0MioricgQtRELjEn6yA7LE21spSX+pDXuuqZha6xc0T9U8d1IGQ5vIwH7r8s0kJzZqXVNGaf3x/fZMH2uXclsnluoXC4hMcnItkXPYqgAuucnJG37xIZqoPzp6/vHZuFnmwB3mmGXKlUPqL8cDFlxMCDw=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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