delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com, "Dave Korn" <dave DOT korn AT artimi DOT com> |
Subject: | Re: [ANNOUNCEMENT] Updated: cygwin-1.5.19-1 |
Mail-Copies-To: | never |
Reply-To: | sds AT gnu DOT org |
X-Attribution: | Sam |
X-Disclaimer: | You should not expect anyone to agree with me. |
From: | Sam Steingold <sds AT gnu DOT org> |
In-Reply-To: | <SERRANO7e0C9guA8M6X000001cf@SERRANO.CAM.ARTIMI.COM> (Dave Korn's message of "Wed, 18 Jan 2006 20:37:30 -0000") |
References: | <uirshffd8 DOT fsf AT gnu DOT org> <SERRANO7e0C9guA8M6X000001cf AT SERRANO DOT CAM DOT ARTIMI DOT COM> |
Mail-Followup-To: | cygwin AT cygwin DOT com, "Dave Korn" <dave DOT korn AT artimi DOT com> |
Date: | Wed, 18 Jan 2006 16:44:20 -0500 |
Message-ID: | <uek35fbyj.fsf@gnu.org> |
User-Agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
> * Dave Korn <qnir DOT xbea AT negvzv DOT pbz> [2006-01-18 20:37:30 +0000]: > > Sam Steingold wrote: > >> not only cygwin "drops extension" from argv[0] (as your bug report >> says), > > > That's not a bug, it's a vital feature. Consider all those Unix-y > programs that perform different functions according to the filename > you invoke them with. Most of them just use "if (!strcmp (argv[0], > "name"))" constructs that would fail if the .exe extension was left > on. Clipping it off is probably the best portability-vs-bugs tradeoff > for cygwin. I see your point. still, realpath() should be putting it back in - or else _all_ functions (fopen, open, stat &c &c) must also do the exe magic. My point is that either realpath() fails or its return value can be opened (or at least opening it cannot fail with ENOENT). -- Sam Steingold (http://www.podval.org/~sds) running w2k http://www.honestreporting.com http://www.savegushkatif.org http://truepeace.org http://www.openvotingconsortium.org If I had known that it was harmless, I would have killed it myself. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |