shellutils-inst.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <sect2>
  2. <title>Installation of Sh-utils</title>
  3. <para>This package requires its hostname-patch to be applied before you
  4. can install it. Make sure it's unpacked before running the installation
  5. commands.</para>
  6. <para>Install Sh-utils by running the following commands:</para>
  7. <para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-hostname-patch-version;.patch &amp;&amp;
  8. ./configure --prefix=/usr &amp;&amp;
  9. make &amp;&amp;
  10. make install &amp;&amp;
  11. mv /usr/bin/{basename,date,echo,false,pwd} /bin &amp;&amp;
  12. mv /usr/bin/{sleep,stty,su,test,true,uname} /bin &amp;&amp;
  13. mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
  14. </sect2>
  15. <sect2>
  16. <title>FHS compliance notes</title>
  17. <para>There is a command installed in this package which is named test. It is
  18. often used in shell scripts to evaluate conditions, but is more often
  19. encountered in the form of <command>[ condition ]</command>. These brackets
  20. are built into the bash interpreter, but the FHS dictates that there should be a
  21. <filename>[</filename> binary. Create it by running:</para>
  22. <para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
  23. </sect2>