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 Subject: Run cmd.exe with /c. Date: Mon, 22 Mar 2010 17:31:54 +0200 Lines: 35 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: 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 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