Subject: Re: replacement for which(1)
To: John Nemeth <jnemeth@victoria.tc.ca>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-userlevel
Date: 04/01/2004 12:41:46
--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Mar 31, 2004 at 07:07:25PM -0800, John Nemeth wrote:
> On Aug 11, 9:59am, Peter Postma wrote:
> }=20
> } I've ported OpenBSD's which(1). The which(1) in the NetBSD tree is sti=
ll
> } a csh script and this one is a C program. The changes that I've made
> } are mostly style/knf and removement of whereis(1) stuff (OpenBSD has wh=
ich(1)
> } and whereis(1) in one single program).
Peter, why not start with NetBSD's whereis command?
> } I hope this is good candidate as replacement for the csh script in the =
tree.
>=20
> Does it read .cshrc and hunt for aliases? This is one of the
> primary reasons for the current one being a csh script.
That and built-ins are the two reasons I think we shouldn't try to use an=
=20
external command.
Take care,
Bill
--HlL+5n6rz5pIUxbD
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFAbH6KWz+3JHUci9cRAhrvAJ91Xk8La+oitV8Yq61w1PHrOmyWSQCdEFop
xxZbQUguf4QAeOkKNL03Pyg=
=eUPV
-----END PGP SIGNATURE-----
--HlL+5n6rz5pIUxbD--