LFS 5.0, coreutils install : "/bin/[" ?

Ken Moffat ken at kenmoffat.uklinux.net
Fri Feb 20 04:36:57 PST 2004

On Fri, 20 Feb 2004, Jason Lenoble wrote:

> 	In chapter 6 of the LFS 5.0 manual, at the end of the section
> dealing with the installation of coreutils, it is requested to make a
> link by typing "ln -s test /bin/[". I know about the common syntax of "ln"
> and have read the LFS FAQ concerning it, but still, writing "/bin/["
> puzzles me, even more as the bash shell doesn't complain at all. Thus my
> question: what is actually this command doing, since the "test" executable
> was already copied previously to the /bin directory ?
> 	Thanks

 You've just created a symlink called '[' in the /bin directory, linked
to 'test' in the same directory.  So, instead of executing a built in
'[' in your scripts you are now able to execute '/bin/[' provided you
put the path in.  FHS compliant.

Brighton tops UK Jedi league

More information about the lfs-support mailing list