cvs commit: BLFS/packages/w which-desc.xml which-inst.xml which-intro.xml which.xml

markh at markh at
Mon Mar 25 11:50:23 PST 2002

markh       02/03/25 11:50:23

  Modified:    .        index.xml
               chapter01 changelog.xml credits.xml
               chapter05 chapter05.xml
  Added:       chapter05 which.xml
               packages/w which-desc.xml which-inst.xml which-intro.xml
  [Bug 46] Add "which" section to chapter 05.
  Gives three options: 1) an alias, 2) a script, 3) the GNU which program.
  Revision  Changes    Path
  1.52      +12 -2     BLFS/index.xml
  Index: index.xml
  RCS file: /home/cvsroot/BLFS/index.xml,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- index.xml	20 Mar 2002 21:53:44 -0000	1.51
  +++ index.xml	25 Mar 2002 19:50:22 -0000	1.52
  @@ -4,8 +4,8 @@
   <!ENTITY book SYSTEM "book/book.xml">
  -<!ENTITY version "20020320">
  -<!ENTITY releasedate "March 20th, 2002">
  +<!ENTITY version "20020325">
  +<!ENTITY releasedate "March 25th, 2002">
   <!ENTITY maintainer-fullname "Mark Hymers">
   <!ENTITY maintainer-firstname "Mark">
   <!ENTITY maintainer-address "markh at">
  @@ -97,6 +97,7 @@
   <!ENTITY ch05-fcron SYSTEM "chapter05/fcron.xml">
   <!ENTITY ch05-gpm SYSTEM "chapter05/gpm.xml">
   <!ENTITY ch05-hdparm SYSTEM "chapter05/hdparm.xml">
  +<!ENTITY ch05-which SYSTEM "chapter05/which.xml">
   <!ENTITY chapter06 SYSTEM "chapter06/chapter06.xml">
   <!ENTITY ch06-intro SYSTEM "chapter06/intro.xml">
  @@ -467,6 +468,15 @@
   <!ENTITY ucspi-tcp-size "190 KB">
   <!-- W -->
  +<!ENTITY which SYSTEM "packages/w/which.xml">
  +<!ENTITY which-intro SYSTEM "packages/w/which-intro.xml">
  +<!ENTITY which-inst SYSTEM "packages/w/which-inst.xml">
  +<!ENTITY which-desc SYSTEM "packages/w/which-desc.xml">
  +<!ENTITY which-buildsize "667 KB">
  +<!ENTITY which-version "2.13">
  +<!ENTITY which-download "">
  +<!ENTITY which-size "104 KB">
   <!ENTITY wvdial SYSTEM "packages/w/wvdial.xml">
   <!ENTITY wvdial-intro SYSTEM "packages/w/wvdial-intro.xml">
   <!ENTITY wvdial-inst SYSTEM "packages/w/wvdial-inst.xml">
  1.48      +3 -0      BLFS/chapter01/changelog.xml
  Index: changelog.xml
  RCS file: /home/cvsroot/BLFS/chapter01/changelog.xml,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- changelog.xml	20 Mar 2002 21:53:44 -0000	1.47
  +++ changelog.xml	25 Mar 2002 19:50:22 -0000	1.48
  @@ -10,6 +10,9 @@
  +<listitem><para>March 25th, 2002 [markh]: Chapter 05 - Added the
  +"which" page.</para></listitem>
   <listitem><para>March 20th, 2002 [markh]: Moved all homeless packages to
   a new temporary place in Chapter 02 until homes are found for them.
   This leaves appendix A empty for the symlink list.</para></listitem>
  1.16      +5 -1      BLFS/chapter01/credits.xml
  Index: credits.xml
  RCS file: /home/cvsroot/BLFS/chapter01/credits.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- credits.xml	20 Mar 2002 21:36:28 -0000	1.15
  +++ credits.xml	25 Mar 2002 19:50:22 -0000	1.16
  @@ -44,6 +44,10 @@
   <listitem><para>Chapter 03: Random number script <emphasis>Larry
  +<listitem><para>Chapter 05: Which <emphasis>Mark Hymers</emphasis> with
  +many thanks to <emphasis>Seth Klein</emphasis> and <emphasis>Jesse 
   <listitem><para>Chapter 06: <xref linkend="ch06-firewall"/>: <emphasis>Henning
   Rohde with thanks to Jeff Bauman</emphasis>.</para></listitem>
  @@ -60,7 +64,7 @@
   <listitem><para>cvs, gpm, hdparm, libjpeg, mng, png, tiff and ungif,
  -links, lynx, openssl and zlib: <emphasis>Mark 
  +links, lynx, openssl, which and zlib: <emphasis>Mark 
   <listitem><para>daemontools, traceroute and ucspi-tcp: <emphasis>Jeff
  1.9       +2 -0      BLFS/chapter05/chapter05.xml
  Index: chapter05.xml
  RCS file: /home/cvsroot/BLFS/chapter05/chapter05.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- chapter05.xml	2 Mar 2002 13:46:21 -0000	1.8
  +++ chapter05.xml	25 Mar 2002 19:50:22 -0000	1.9
  @@ -21,6 +21,7 @@
   <listitem><para><xref linkend="fcron"/></para></listitem>
   <listitem><para><xref linkend="gpm"/></para></listitem>
   <listitem><para><xref linkend="hdparm"/></para></listitem>
  +<listitem><para><xref linkend="which"/></para></listitem>
  @@ -31,5 +32,6 @@
  1.1                  BLFS/chapter05/which.xml
  Index: which.xml
  <sect1 id="ch05-which">
  <?dbhtml filename="which.html" dir="chapter05"?>
  <title>The "which" program / script</title>
  <para>The presence / absence of the which program in the main LFS book
  is probably one of the most contentious issues we have on the mailing
  lists.  It has resulted in at least one flame war in the recent past.
  To hopefully put an end to this once and for all, we here present the
  various options for equipping your system with "which".</para>
  <para>The first option is simply to use a bash alias:</para>
  <screen>alias which='type -p'</screen>
  <para>This command can be put in your
  <filename>~/.bash_profile</filename> or <filename>~/.bashrc</filename>
  file in order to be set up each time you log in (see man bash for more
  information on the bash login files).  This will not always work
  however, for example it will fail when a program needs to use "which" but 
  doesn't spawn a shell.</para>
  <para>The second option is to create a simple script:</para>
  <para><screen><userinput>cat > /usr/bin/which << EOF</userinput>
  type -p "$@"
  chmod 755 /usr/bin/which
  chown root.root /usr/bin/which</userinput></screen></para>
  <para>This should generally work OK and is probably the easiest solution
  for boxes which don't need a good user environment to work in.</para>
  <para>The third option is to install the actual program
  1.1                  BLFS/packages/w/which-desc.xml
  Index: which-desc.xml
  <para>The which package contains <userinput>which</userinput>.</para>
  <para>which shows the full path of (shell) commands.</para></sect4>
  1.1                  BLFS/packages/w/which-inst.xml
  Index: which-inst.xml
  <title>Installation of which</title>
  <para>Install which by running the following commands:</para>
  <para><screen><userinput>./configure --prefix=/usr &&
  make &&
  make install</userinput></screen></para>
  1.1                  BLFS/packages/w/which-intro.xml
  Index: which-intro.xml
  <title>Introduction to which</title>
  <screen>Download location:              &which-download;
  Version used:                   &which-version;
  Package size:                   &which-size;
  Estimated Disk space required:  &which-buildsize;</screen>
  1.1                  BLFS/packages/w/which.xml
  Index: which.xml
  <sect2 id="which" xreflabel="which-&which-version;">
Unsubscribe: send email to listar at
and put 'unsubscribe blfs-book' in the subject header of the message

More information about the blfs-book mailing list