delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.5 required=5.0 tests=BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Oleksandr Gavenko <gavenko AT bifit DOT com DOT ua> |
Subject: | Run cmd.exe with /c. |
Date: | Mon, 22 Mar 2010 17:31:54 +0200 |
Lines: | 35 |
Message-ID: | <ho82hb$59h$1@dough.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
X-IsSubscribed: | yes |
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 |
I want execute .bat file. I think easy way to do this is invoke $COMSPEC to do that. Like this $(subst \,/,$(COMSPEC)) /c file.bat from Makefile. But cmd fail with error: bash# cat 1.bat @echo off echo xxx bash# cmd.exe /c 1.bat bash: /cygdrive/c/WINDOWS/system32/cmd.exe: Bad address I found that this work: bash# cmd.exe \\/c 1.bat xxx bash# cmd /c 1.bat xxx This experiments done under Cygwin 1.7. I found that this already reported and seems fixed: http://old.nabble.com/1.7.1-%22Bad-Address%22-when-running-cmd.exe-on-64-bit-windows-server--2008-td27276492.html Under Cygwin 1.5 no such issue. I get http://cygwin.com/snapshots/cygwin1-20100318.dll.bz2 from http://cygwin.com/snapshots/ and now all work ok. But where can I get fixed official version of cygwin1.dll? Or how long wait for release? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |