X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Subject: RE: Unable to access file from shell script (XP configure problem?)
Date: Thu, 25 Oct 2007 19:03:51 +0200
Message-ID: <AB5E58B87EB73C46A38073D8F459F11335B903@dataspheresrv01>
In-Reply-To: <E4EA239D9BC4F84A984FE6C7F115EE7F02742E3E@mpexch3.nt.ingenuity.com>
From: "Patrick Monnerat" <Patrick.Monnerat@datasphere.ch>
To: <cygwin@cygwin.com>
X-Virus-Status: Clean
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l9PH47DS010205

 
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/


