This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Unable to access file from shell script (XP configure problem?)
- From: "Patrick Monnerat" <Patrick dot Monnerat at datasphere dot ch>
- To: <cygwin at cygwin dot com>
- Date: Thu, 25 Oct 2007 19:03:51 +0200
- 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/