Arun Biyani <abiyani <at> dickey-john.com> writes: > [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
Please don't commandeer threads. The answer to your question is here: http://cygwin.com/ml/cygwin-announce/2008-11/msg00035.html not to mention that it is a FAQ on this list > 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"? No, the fix is to quit using linefeeds in your script files unless you are willing to teach bash to ignore those line feeds. d2u is your friend. -- Eric Blake volunteer cygwin bash maintainer -- 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/