X-Recipient: archive-cygwin AT delorie DOT 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: In-Reply-To: From: "Patrick Monnerat" To: X-Virus-Status: Clean X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/