delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/28/13:18:19

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 13:18:08 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: RE: "which" command does not expand "~" in path
In-Reply-To: <Pine.CYG.4.58.0409281042280.2292@fordpc.vss.fsi.com>
Message-ID: <Pine.GSO.4.61.0409281315550.4220@slinky.cs.nyu.edu>
References: <6 DOT 1 DOT 2 DOT 0 DOT 1 DOT 20040929010527 DOT 027f4eb0 AT mail DOT ros DOT com DOT au> <Pine DOT CYG DOT 4 DOT 58 DOT 0409281042280 DOT 2292 AT fordpc DOT vss DOT fsi DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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.  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"... :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019