Improved which script

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2150 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Tushar Teredesai 2004-05-13 14:43:49 +00:00
parent 034abd0060
commit 2687739ce1
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@ is for you to decide.</para>
is to create a simple script:</para>
<screen><userinput><command>cat &gt; /usr/bin/which &lt;&lt; "EOF"</command>
#!/bin/bash
type -pa "$@"|head -1
type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}
<command>EOF
chmod 755 /usr/bin/which
chown root:root /usr/bin/which</command></userinput></screen>

View File

@ -11,7 +11,10 @@ who wrote what.</para>
<itemizedlist>
<listitem><para>May 13th, 2004 [igor]: Reclassified all dependencies
<listitem><para>May 13th, 2004 [tushar]: Improved which script as per
Matthias Benkmann.</para></listitem>
<listitem><para>May 13th, 2004 [tushar]: Reclassified all dependencies
to XFree86 as dependencies to either XFree86 or Xorg.</para></listitem>
<listitem><para>May 12th, 2004 [igor]: Added GOK-0.10.2 and