delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/25/18:32:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Unable to access file from shell script (XP configure problem?)
Date: Thu, 25 Oct 2007 15:32:17 -0700
Message-ID: <E4EA239D9BC4F84A984FE6C7F115EE7F02806997@mpexch3.nt.ingenuity.com>
In-Reply-To: <AB5E58B87EB73C46A38073D8F459F11335B903@dataspheresrv01>
References: <E4EA239D9BC4F84A984FE6C7F115EE7F02742E3E AT mpexch3 DOT nt DOT ingenuity DOT com> <AB5E58B87EB73C46A38073D8F459F11335B903 AT dataspheresrv01>
From: "Ramon Felciano" <felciano AT ingenuity DOT com>
To: "Patrick Monnerat" <Patrick DOT Monnerat AT datasphere DOT ch>, <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-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l9PMWQrk023638

Perfect -- this did the trick! Thank you all for your quick responses!

Ramon

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
> Behalf Of Patrick Monnerat
> Sent: Thursday, October 25, 2007 10:04 AM
> To: cygwin AT cygwin DOT com
> Subject: RE: Unable to access file from shell script (XP configure
> problem?)
> 
> 
> Ramon Felciano wrote:
> 
> > ----------------------------------------------------
> > : No such file or directoryramon.txt
> > ----------------------------------------------------
> 
> > which looks like it is an error message that overwrote the
> "/cygdrive/c/Downloads/ramon.txt" pathname.
> 
> Your shell script as CRLF-ending lines, while cygwin uses \n-ending
> lines. The shell considers the CR at the end of script line 'cat "$@"'
> as being part of the file name: there is no such file and the error
> message is overwritten at display time.
> 
> A solution is to convert your script using dos2unix
> 
> --
> 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/



----+----
This email message (and any attached document) contains information from Ingenuity Systems Inc. which may be considered confidential by Ingenuity, or which may be privileged or otherwise exempt from disclosure under law, and is for the sole use of the individual or entity to whom it is addressed.  Any other dissemination, distribution or copying of this message is strictly prohibited.  If you receive this message in error, please notify me and destroy the attached message (and all attached documents) immediately. 

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