From 4294b908cdfc273ab96d371975016b987cb1af1f Mon Sep 17 00:00:00 2001 From: Simon Perreault Date: Thu, 3 May 2001 23:44:00 +0000 Subject: 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 --- chapter06/shellutils-inst.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/chapter06/shellutils-inst.xml b/chapter06/shellutils-inst.xml index 2f7c802eb..27d29ea4f 100644 --- a/chapter06/shellutils-inst.xml +++ b/chapter06/shellutils-inst.xml @@ -16,3 +16,21 @@ Install Shellutils by running the following commands: + +FHS compliance notes + + +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 [ condition ]. These brackets are built into +the bash interpreter, but the FHS dictates that there should exist a +[ binary. We create that in this way, while still in the +/usr/bin directory: + + +
+ ln -s test [ +
+ +
+ -- cgit v1.2.3-54-g00ecf