This is the mail archive of the
cygwin
mailing list for the Cygwin project.
date generates a "\r"
- From: "Arun Biyani" <abiyani at dickey-john dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 3 Feb 2009 09:20:03 -0600
- Subject: date generates a "\r"
- References: <announce.498855A5.8080102@byu.net>
[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/