delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: 'which' command in cygwin ... |
Date: | 4 Apr 2001 14:11:57 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 24 |
Message-ID: | <9afa3d$kdh$1@nets3.rz.RWTH-Aachen.DE> |
References: | <878B7E94C206D511895800A0C9F4871CEC0631 AT xcup01 DOT cup DOT hp DOT com> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 986393517 20913 137.226.32.75 (4 Apr 2001 14:11:57 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 4 Apr 2001 14:11:57 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"SARKAR,SUMIT (Non-HP-Cupertino,ex1)" <sumit_sarkar AT non DOT hp DOT com> wrote: > Is 'which' command available in cygwin? In unix, it is very helpful to find > out which binary > is being used. Why would you ask about Cygwin here, in the DJGPP newsgroup??? Anyway: using BASH, you don't need a special 'which' command. Just alias the bash-internal 'type' command appropriately: alias which='type -p' or alias which='type' depending on whether you want to see shell internal commands, too. Another useful one is alias where='type -a' ('which -a' may do the same, if you're using a separate 'which' command). -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |