This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: "which" command does not expand "~" in path


On Tue, 28 Sep 2004, Igor Pechtchanski wrote:

> On Tue, 28 Sep 2004, Brian Ford wrote:
> > 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]
> > So, is this a Solaris non-compliance issue, or is which not supposed to be
> > valid under any non-csh derrived shell?
>
> "which" is also a csh builtin.

The only reference to which in csh(1) is to which(1).

> I imagine that the apropos database on Solaris contains the "csh(1)"
> match for "which" before the "which(1)" entry, so "man which" finds it
> first.  Try "man -a which"... :-)

Nope.  That quote comes from which(1), and man -a which doesn't turn
anything else up.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]