X-Recipient: archive-cygwin@delorie.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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=mFUgxtgE9PBZr/gGWUZTWRFuHWThPALA9YJCXrDXftd
	CaJlTdLVGIlnA0Su7GsZ+u9vG+1uUTBTBwdEA0NlwZWxeZjuzqZVRYtL3GM2PdLA
	yZTqvD1G1cKgxthOdoj9HyHQXHrJD5m7U8SjH0FH0ta5jBANVwqPYv9jfL/G+NEg
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=A9AnAWK9jzRID62UKUt4cnYI9b8=; b=kXuEuzm5lpXt3hkPn
	+6ala1rHbEDxJ9+kI2SNcQUEtvUHaBRTJzQsWAfa0uy9+05U+rLd2WYJ2f4vfwae
	D5LHS1vmzHNq7MS3XfVDkQXClYoxwYHhR+CdZboTj2h6nAJ+fhqBx3eafry3BtHv
	UZSMyr7RkF60W3EC19SNenh2iw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HK_OBFDOM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qc0-f169.google.com
X-Received: by 10.229.112.5 with SMTP id u5mr54100344qcp.3.1395360418512;        Thu, 20 Mar 2014 17:06:58 -0700 (PDT)
Message-ID: <532B82A2.5050800@gmail.com>
Date: Thu, 20 Mar 2014 20:06:58 -0400
From: Max Polk <maxpolk@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Patch for run-1.3.0-1 core dump
References: <530548A0.9060008@gmail.com> <532AE5AC.5080507@gmail.com>
In-Reply-To: <532AE5AC.5080507@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 3/20/2014 8:57 AM, Patrick Herbst wrote:
>> On 2/18/2014 4:16 AM, Corinna Vinschen wrote:
>> Did my earlier patch get included?  I haven't seen a "run" new version
>> yet.
>>
>> http://www.cygwin.com/ml/cygwin/2013-12/msg00006.html
>>
>> My patch was the one that properly quote arguments.  Maybe let's start
>> with that before putting new stuff underneath it.  From Chuck: "I'll
>> roll a new update fairly soon."
>>
>> http://www.cygwin.com/ml/cygwin/2013-12/msg00045.html
> I'm still looking for a released fix for this too.  Thus far I've been
> using run 1.2.
>
> Any word on this?

In the mean time, you can run it from /usr/local/bin if you like:

wget -O RUN-patch.txt 'http://pastebin.com/download.php?i=4SSPDGQh'
export CVSROOT=:pserver:anoncvs@cygwin.com:/cvs/cygwin-apps
cvs checkout run
cd run
patch -p0 < ../RUN-patch.txt
autoreconf -vif
./configure --prefix=/usr/local
make
make install

You end up with:
/usr/local/bin/run.exe
/usr/local/share/man/man1/run.1

If you start natively from Windows, note that the run utility, by virtue 
of sitting in the same directory as the cygwin dlls, takes advantage of 
Window's behavior to find dlls in the same directory as the program 
being run.  So by installing to /usr/local/bin, and running it from 
Windows (not from Cygwin shell), assuming Cygwin bin is not in your 
path, you lose that advantage.  Then you have to modify the path where 
and when you execute run, or using run to launch /bin/bash -c command to 
run with a hidden shell as the parent, otherwise your app may not find 
what it needs.

If you start from Cygwin shell, you probably already have /usr/local/bin 
before /usr/bin in your path, but if not, make it so.


--
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

