From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21197 invoked by alias); 17 Jul 2013 14:05:22 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 21170 invoked by uid 89); 17 Jul 2013 14:05:22 -0000 X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,RDNS_NONE,SPF_SOFTFAIL,TW_YG autolearn=no version=3.3.1 Received: from Unknown (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 17 Jul 2013 14:05:17 +0000 Received: from [91.79.194.167] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) id 1UzSLr-0002dc-Oe for cygwin@cygwin.com; Wed, 17 Jul 2013 18:05:07 +0400 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 17 Jul 2013 13:54:49 -0000 Date: Wed, 17 Jul 2013 14:10:00 -0000 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <14010118879.20130717175449@mtu-net.ru> To: Corinna Vinschen Subject: Re: Issue with run.exe and PWD with spaces since last update (Cygwin 1.7.21) In-Reply-To: <20130717125916.GB21347@calimero.vinschen.de> References: <295777180.20130716202913@mtu-net.ru> <20130717125916.GB21347@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-07/txt/msg00350.txt.bz2 Greetings, Corinna Vinschen! > On Jul 16 20:29, Andrey Repin wrote: >> Greetings, All! >> >> I'm trying to execute a script that was working fine until recent update. >> It doesn't crash, just, for some reason, trim the last component of a path. >> >> In a nutshell, the issue is this: >> >> $ mkdir "/a b" >> $ cd "/a b" >> $ ls -l "$SYSTEMROOT/System32/notepad.exe" >> (just to confirm that the file actually exists) >> $ run "$SYSTEMROOT/System32/notepad.exe" >> Error pops up: > This never works, even in any other directory. It's the same problem > which disallows checkX to work, as reported in > http://cygwin.com/ml/cygwin/2013-07/msg00326.html Now, it doesn't work >.> Worked before, while I was running tests. What magic is dat? > The cause is an optimization when calling cygwin executables. So far, > Cygwin executables got their arguments via mmeory copy as well as via > the single-line cmdline argument of CreateProcess. We removed the > latter since it was never meant to work that way in the first place. > Unfortunately it turns out that run/run2/checkX are Cygwin executables > which don't have a main routine, but rather a WinMain routine. The > latter has a single cmdline argument, which is generated via > GetCommandLine(). But since Cygwin executables get no single-line > command line anymore, this stopped working. > Stay tuned, I am. In the meantime, I had to use cmd /C start "" "$( cygpath -alm "$CWD/..." )" -- WBR, Andrey Repin (anrdaemon@freemail.ru) 17.07.2013, <17:52> Sorry for my terrible english... -- 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