1
0
Эх сурвалжийг харах

Added an FHS compliance note regarding the linking of [ with test.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@565 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Simon Perreault 24 жил өмнө
parent
commit
4294b908cd

+ 18 - 0
chapter06/shellutils-inst.xml

@@ -16,3 +16,21 @@ Install Shellutils by running the following commands:
 
 </sect2>
 
+<sect2>
+<title>FHS compliance notes</title>
+
+<para>
+There is a command installed in this package which is named test. It is often
+used in shell scripts to evaluate conditions, but if more often encountered
+under the form <command>[ condition ]</command>. These brackets are built into
+the bash interpreter, but the FHS dictates that there should exist a
+<filename>[</filename> binary. We create that in this way, while still in the
+<filename>/usr/bin</filename> directory:
+</para>
+
+<blockquote><literallayout>
+	<userinput>ln -s test [</userinput>
+</literallayout></blockquote>
+
+</sect2>
+