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]

date generates a "\r"


[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/


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