Typo
[linux_from_scratch_hints.git] / OLD / which.txt
blob960c375192493c0eba41c33dec36f3ec8bb6f9f6
1 TITLE:          The Which Hint
2 LFS VERSION:    any
3 AUTHOR:         Jesse Tie Ten Quee <highos@highos.com>
5 SYNOPSIS:
6         Different ways to install which.
8 HINT:
11 There about three different ways to include the program which in your
12 LFS system.
14 alias which='type -p'
16 This will work, allthough give you trouble perhaps with things that need
17 which that don't spawn a shell so something more like this is in order;
19 cat >/usr/bin/which
20 #!/bin/sh
21 type -p $1
22 <CTRL-C>
23 chmod +x /usr/bin/which
25 This should work fine for all general purposes of which, allthough if
26 you do want to have the genral which program with man pages, etc. then i
27 suggest you use the GNU Which (if you do a search on [fm] there are
28 others)
30 packages: ftp://ftp.gnu.org/gnu/which/which-2.12.tar.gz
32 Enjoy!