delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/17/10:05:37

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=l6/uKmrImckks/SC
UwjUedGrwsELBfFCRtzCUlt5zbNfPHpPRwQybYdgVbtMLOshQvi4faHrnwm5/bq4
h2gbcUmu3cry1Esa10pVDlu6PSOOqvZPBE4aJHVtL1S6pBTNj5dnp96i/O5dVKcF
jTugQ2iulOA2sYG++WxM7zvh9kc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=3C6AwmWRyuuAPk/0LkRZYe
rL8S0=; b=vxwrBUb6d4P+iu+n3umq/uKp0DZJPY1esb+LbRKFQ3MkdSLptr2wah
WGzDuNlP6669t6uTQg2dcG8U35z2WeAcrbdIoUukZRJmpd3UODD04EP4ISECoqhl
vQ031o8NYkfLPlyD2/tdIjsr1p9oVksN3x5O9twIQ8Rd2Aow7RV50=
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-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
Date: Wed, 17 Jul 2013 17:54:49 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <14010118879.20130717175449@mtu-net.ru>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
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 DOT 20130716202913 AT mtu-net DOT ru> <20130717125916 DOT GB21347 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT freemail DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019