This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]