delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/16/12:35:32

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
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=OQtrDN7eVNe724ECbGPPH5VF+WZqCznaHpjYcxuukmsNX0rVN+xBI
s0ae4Vyd6CtoRARvjkWTufb32/zaMbyx2rfcjq3irBf4Mxs5/Z0dT50vUuQWeeQg
jYVyhh1NKqotboO8QdAFgcwUeQkyYqPcp0WmkpHKjTulsDUexblLZU=
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
:mime-version:content-type:content-transfer-encoding; s=default;
bh=wB05VfW+jxhp69TYP5Z/q6/AFa0=; b=yi1vjgRwWBIiA7SzB2eUSdX141GD
UkR1WMFfP1ST1AYQHkzR2XH0DojMeZYdS1h52STyaidvxSYy/12dTca5DAC64N0d
6B9z0okAY5x8/cwGb1MSlrRRzUKL06LX2j/i4v8BDKOU5xeOQDOoiVjxAp6IyWNA
w+eTwNuhsTqZc2E=
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.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RDNS_NONE,SPF_SOFTFAIL autolearn=no version=3.3.1
Date: Tue, 16 Jul 2013 20:29:13 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <295777180.20130716202913@mtu-net.ru>
To: All <cygwin AT cygwin DOT com>
Subject: Issue with run.exe and PWD with spaces since last update (Cygwin 1.7.21)
MIME-Version: 1.0
X-IsSubscribed: yes

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:

---------------------------
Run.exe
---------------------------
Error: could not start C:\Programs\CygWin\a b

---------------------------
OK
---------------------------


$ cygcheck.exe -v run
Found: C:\Programs\CygWin\bin\run.exe
Found: C:\Programs\CygWin\bin\run.exe
C:\Programs\CygWin\bin\run.exe - os=4.0 img=1.0 sys=4.0
  C:\Programs\CygWin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
    "cygwin1.dll" v0.0 ts=2013-07-15 11:17
    C:\WINDOWS\system32\KERNEL32.dll - os=5.1 img=5.1 sys=4.0
      "KERNEL32.dll" v0.0 ts=2009-03-21 12:36
      C:\WINDOWS\system32\ntdll.dll - os=5.1 img=5.1 sys=4.10
        "ntdll.dll" v0.0 ts=2010-12-09 13:38
    C:\WINDOWS\system32\ntdll.dll (already done)
  C:\WINDOWS\system32\KERNEL32.dll (already done)
  C:\WINDOWS\system32\SHELL32.DLL - os=5.1 img=5.1 sys=4.10
    "SHELL32.dll" v0.0 ts=2012-06-08 14:41
    C:\WINDOWS\system32\ADVAPI32.dll - os=5.1 img=5.1 sys=4.0
      "ADVAPI32.dll" v0.0 ts=2009-02-06 11:02
      C:\WINDOWS\system32\KERNEL32.dll (already done)
      C:\WINDOWS\system32\ntdll.dll (already done)
      C:\WINDOWS\system32\RPCRT4.dll - os=5.1 img=5.1 sys=4.10
        "RPCRT4.dll" v0.0 ts=2010-08-13 14:32
        C:\WINDOWS\system32\ADVAPI32.dll (recursive)
        C:\WINDOWS\system32\KERNEL32.dll (already done)
        C:\WINDOWS\system32\ntdll.dll (already done)
        C:\WINDOWS\system32\Secur32.dll - os=5.1 img=5.1 sys=4.0
          "Secur32.dll" v0.0 ts=2009-06-24 13:10
          C:\WINDOWS\system32\ADVAPI32.dll (recursive)
          C:\WINDOWS\system32\KERNEL32.dll (already done)
          C:\WINDOWS\system32\ntdll.dll (already done)
    C:\WINDOWS\system32\GDI32.dll - os=5.1 img=5.1 sys=4.10
      "GDI32.dll" v0.0 ts=2008-10-22 17:52
      C:\WINDOWS\system32\KERNEL32.dll (already done)
      C:\WINDOWS\system32\ntdll.dll (already done)
      C:\WINDOWS\system32\USER32.dll - os=5.1 img=5.1 sys=4.0
        "USER32.dll" v0.0 ts=2008-04-13 20:22
        C:\WINDOWS\system32\GDI32.dll (recursive)
        C:\WINDOWS\system32\KERNEL32.dll (already done)
        C:\WINDOWS\system32\ntdll.dll (already done)
    C:\WINDOWS\system32\KERNEL32.dll (already done)
    C:\WINDOWS\system32\msvcrt.dll - os=5.1 img=5.1 sys=4.0
      "msvcrt.dll" v0.0 ts=2008-04-13 17:41
      C:\WINDOWS\system32\KERNEL32.dll (already done)
      C:\WINDOWS\system32\ntdll.dll (already done)
    C:\WINDOWS\system32\ntdll.dll (already done)
    C:\WINDOWS\system32\RPCRT4.dll (already done)
    C:\WINDOWS\system32\SHLWAPI.dll - os=5.1 img=5.1 sys=4.0
      "SHLWAPI.dll" v0.0 ts=2009-12-07 13:39
      C:\WINDOWS\system32\ADVAPI32.dll (already done)
      C:\WINDOWS\system32\GDI32.dll (already done)
      C:\WINDOWS\system32\KERNEL32.dll (already done)
      C:\WINDOWS\system32\msvcrt.dll (already done)
      C:\WINDOWS\system32\USER32.dll (already done)
    C:\WINDOWS\system32\USER32.dll (already done)
  C:\WINDOWS\system32\USER32.dll (already done)

$ cygcheck.exe -f /bin/run.exe
run-1.2.0-1

$ cygcheck.exe -c run
Cygwin Package Information
Package              Version        Status
run                  1.2.0-1        OK


-- 
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 16.07.2013, <20:12>

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