shellutils-inst.xml 1.0 KB

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