X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_40,DNS_FROM_RFC_BOGUSMX,SPF_PASS X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: date generates a "\r" Date: Tue, 3 Feb 2009 09:20:03 -0600 Message-ID: <0A4ADB2148EA2948B9FFFB980FA0D22F0570B7B6@djexchange.dickey-john.com> References: From: "Arun Biyani" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com [log$:513] name=3D$(date +tiny-%b-%d-%g) [log$:514] bakup=3D$name.tz The assignments above result in bakup being=20 "/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/