delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Date: | Tue, 28 Sep 2004 10:48:45 -0500 |
From: | Brian Ford <ford AT vss DOT fsi DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
To: | Errol Smith <errol AT ros DOT com DOT au> |
cc: | cygwin mailing-list <cygwin AT cygwin DOT com> |
Subject: | RE: "which" command does not expand "~" in path |
In-Reply-To: | <6.1.2.0.1.20040929010527.027f4eb0@mail.ros.com.au> |
Message-ID: | <Pine.CYG.4.58.0409281042280.2292@fordpc.vss.fsi.com> |
References: | <6 DOT 1 DOT 2 DOT 0 DOT 1 DOT 20040929010527 DOT 027f4eb0 AT mail DOT ros DOT com DOT au> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
On Wed, 29 Sep 2004, Errol Smith wrote: > This is all fine & good, but it doesn't change the fact that the > cygwin-supplied "which" does NOT work with the cygwin-supplied > ".bash_profile" (when you use a personal ~/bin directory.). I'm just curious. This is from the Solaris 8 man page for which: DESCRIPTION [snip] Both aliases and path are taken from the user's .cshrc file [snip] SEE ALSO csh(1) [snip] BUGS Only aliases and paths from ~/.cshrc are used; importing from the current environment is not attempted. Must be exe- cuted by csh(1), since only csh knows about aliases. To compensate for ~/.cshrc files in which aliases depend upon the prompt variable being set, which sets this variable to NULL. If the ~/.cshrc produces output or prompts for input when prompt is set, which may produce some strange results. So, is this a Solaris non-compliance issue, or is which not supposed to be valid under any non-csh derrived shell? -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International the best safety device in any aircraft is a well-trained pilot... -- 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 |