mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
Improved which script
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2150 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
034abd0060
commit
2687739ce1
@ -21,7 +21,7 @@ is for you to decide.</para>
|
||||
is to create a simple script:</para>
|
||||
<screen><userinput><command>cat > /usr/bin/which << "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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user