www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
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" <cbressan AT zim DOT biz> |
To: | <cygwin AT cygwin DOT com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |