delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/06/00:31:58

From: Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca>
Message-Id: <199908060406.AAA02907@mccoy2.ECE.McGill.CA>
Subject: Re: `which' for 2.03?
To: djgpp-workers AT delorie DOT com
Date: Fri, 6 Aug 1999 00:06:18 -0400 (EDT)
In-Reply-To: <199908052031.PAA14249@darwin.sfbr.org> from "Jeff Williams" at Aug 5, 99 03:31:16 pm
X-Mailer: ELM [version 2.4 PL25]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Bonjour M. Jeff Williams
> 
> Are there plans to include a `which' command with 2.03?
> 

You're taling about the `which' shell locate command ?

There is :
`type -path' 

# type -path gcc
/usr/local/gcc

The cons is that it does not do aliases
# alias
alias cp='cp -i'
alias ls='ls -F'
alias mv='mv -i'
# type -path ls
# type -all ls
ls is aliased to `ls -F'
ls is /usr/bin/ls


-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!

- Raw text -


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