Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#113 closed defect (wontfix)

we should add the 'which' program to the LFS system

Reported by: antilyrical@… Owned by: lfs-book@…
Priority: normal Milestone:
Component: Book Version: 3.0-pre4
Severity: normal Keywords:
Cc:

Description

I think the GNU 'which' program should be installed in the LFS system. I think it makes sense to add that program because it is used somewhat often. We already install the 'whoami' and 'whereis', and IMHO 'which' is used more then those two.

Change History (1)

comment:1 by gerard@…, 23 years ago

Resolution: wontfix
Status: newclosed

This has been brought up a few times already. Basically what people use 'which' for can verye easily be replaced by the following shell script:

#!/bin/sh type -p "$@" #end which

The gnu which package may be more powerful giving dozens of kewler options, but they can for the most part all be emulated by the bash built-in command 'type'.

The only reason why you may not want to use it if you don't use the bash shell but a different shell that has no or bad 'type' support.

Either way general consensus on lfs-discuss was that it's not worth an entire package when you can run 'type -p'

Note: See TracTickets for help on using tickets.