#113 closed defect (wontfix)
we should add the 'which' program to the LFS system
Reported by: | Owned by: | ||
---|---|---|---|
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.
Note:
See TracTickets
for help on using tickets.
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'