X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="US-ASCII"
Subject: RE: Suggestion for run (with patch)
Date: Mon, 9 Apr 2007 22:15:12 +0100
Message-ID: <7231C15EAC2F164CA6DC326D97493C8B02F8FE44@exchange35.fed.cclrc.ac.uk>
In-Reply-To: <461AAA69.70322D19@dessent.net>
References: <7231C15EAC2F164CA6DC326D97493C8B02F8FE34@exchange35.fed.cclrc.ac.uk> <20070409145533.GA8977@ednor.casa.cgf.cx> <7231C15EAC2F164CA6DC326D97493C8B02F8FE3E@exchange35.fed.cclrc.ac.uk> <461AAA69.70322D19@dessent.net>
From: "Adye, TJ \(Tim\)" <T.J.Adye@rl.ac.uk>
To: <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l39LEsNj003815

Brian Dessent wrote on 09 April 2007 22:05:
>
> If you really want a compromise solution, you could modify 
> run to not depend on cygwin1.dll at link-time but instead 
> LoadLibrary() it at runtime, and if that fails fall back to 
> whatever the native version would have done.  Thus you get a 
> single executable that understands posix paths if the DLL is 
> in the PATH and still allows to you "run 
> c:\cygwin\bin\bash.exe" (or whatever it is that you're 
> currently doing) if the DLL is not in the PATH.  Though that 
> itself may cause confusion...

That's a nice idea, but I suspect it would indeed cause more confusion
than any gain - especially when we're only talking about a 50k
executable. Imagine the program silently behaving differently if you
change the PATH. A nice "cygwin1.dll was not found" error message is
usually preferable :-)

I hope that a separately-named (small) executable, perhaps installed
elsewhere, will be acceptable.

Tim.

===========================  cut here  ============================
 Tim Adye      T.J.Adye@rl.ac.uk       http://hepunx.rl.ac.uk/~adye
 BaBar/Atlas Groups, Particle Physics Dept, Rutherford Appleton Lab

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


