X-Spam-Check-By: sourceware.org content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Errors running shell commands in "make" on Vista Date: Tue, 17 Apr 2007 09:53:40 -0400 Message-ID: <546CD3100F4C0F42A30A94C0F2B3491402133D63@zimmail1.zim.zimismobile.com> From: "Celso Bressan" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 l3IF4cHJ013542 A "makefile" raises two funny errors when running under "make" on Vista. To reproduce it, place "make" and the "makefile" below in the current directory. test: test -d MyDir && rm -r MyDir || mkdir MyDir test -d MyDir && ls -l AnotherDir || ls -l YourDir Then, from the prompt, perform: > mkdir AnotherDir YourDir > ./make -i test the result is: test -d MyDir && rm -r MyDir || mkdir MyDir mkdir: cannot create directory `MyDir\r': No such file or directory c:\zim8\builders\allnt\make\make.exe: [test] Error 1 (ignored) test -d MyDir && ls -l AnotherDir || ls -l YourDir : No such file or directory c:\zim8\builders\allnt\make\make.exe: [test] Error 2 (ignored) Notice the "MyDir\r" and ": No such file or directory" errors. I tried saving the makefile either in PC or Unix formats with no avail. By debugging "make", I could see the creation of small shells but they are removed after the errors. Cygwin is the latest and greatest. The correct results should be either the creation or removal of "MyDir" and listing either "AnotherDir" or "YourDir". The last error only happens if "MyDir" doesn't exist (that is, the "else" condition is valid). Thanks. Celso Bressan -- 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/