This is the mail archive of the
cygwin
mailing list for the Cygwin project.
changed behaviour in date command
- From: "Nicholas Volk" <nvolk at bitlips dot fi>
- To: cygwin at cygwin dot com
- Date: Tue, 12 Aug 2008 07:59:32 +0300 (EEST)
- Subject: changed behaviour in date command
Hi all,
I have used script to pach a group of files. The relevant command in the
script has been
tar -jcvf api-`date '+%Y%m%d%k%M'`.tbz files
After I updated cygwin today (bash updated) this no longer works as such,
because the behaviour of %k has changed: instead of the usual "07" I now
get " 7". Is this intentional? At least in my opinion the new behaviour is
worse than the original.
(The fix itself is easy: tar -jcvf api-`date '+%Y%m%d%k%M' | tr ' '
'0'`.tbz files )
br,
Nicholas
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/