date generates a "\r"
Arun Biyani
abiyani@dickey-john.com
Tue Feb 3 15:20:00 GMT 2009
[log$:513] name=$(date +tiny-%b-%d-%g)
[log$:514] bakup=$name.tz
The assignments above result in bakup being
"/c/home/bak/tiny-Feb-02-g\r.tz". I'd like to understand why this
happens
when the script is being run from cron (but not when I run it in a bash
shell). Is the fix is to put "/usr/bin/date" instead of "date"?
--
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/
More information about the Cygwin
mailing list