delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <e6940be71003041251j37d25cadj428f3f55336437b9@mail.gmail.com> |
References: | <4B8E2648 DOT 3070603 AT charlesroper DOT co DOT uk> <4B901512 DOT 8080703 AT laposte DOT net> <e6940be71003041251j37d25cadj428f3f55336437b9 AT mail DOT gmail DOT com> |
Date: | Thu, 4 Mar 2010 22:12:43 +0100 |
Message-ID: | <e6940be71003041312t7ccec3br245eaf2f1216a29d@mail.gmail.com> |
Subject: | Re: 1.7.1: Problem with cygstart and arguments containing spaces |
From: | Ilya Beylin <beylin DOT i AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Hello, Cyrille Lefevre wrote: > cygstart --wait /system32/cmd /c "echo 1 2&pause" I do not think it is a convincing example. cmd.exe treats everything that follows / c as a single command, so yuo would get the same result even without quotes. =C2=A0=C2=A0=C2=A0 cygstart --wait $WINDIR/system32/cmd /c echo 1 2=C2=A0 \= & pause The problem is probably that windows passes arguments as a concatenated string,=C2=A0 to be parsed by the application. Try to pass the whole command line to your program, it may work better: =C2=A0=C2=A0=C2=A0 cygstart /cygdrive/d/Software/Console2/Console.exe=C2=A0= '-d "C:/Program Files" ' Regards, Ilya -- 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 |