delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/03/10:20:21

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
MIME-Version: 1.0
Subject: date generates a "\r"
Date: Tue, 3 Feb 2009 09:20:03 -0600
Message-ID: <0A4ADB2148EA2948B9FFFB980FA0D22F0570B7B6@djexchange.dickey-john.com>
References: <announce DOT 498855A5 DOT 8080102 AT byu DOT net>
From: "Arun Biyani" <abiyani AT dickey-john DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019