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

Kevin P. Fleming kpfleming at linuxfromscratch.org
Sat Feb 21 06:31:35 PST 2004

eklirmr at wanadoo.fr wrote:

> Ah, that explains something that's been worrying me ever since I
> started looking at some of the shell scripts (eg startx).  But what
> happens to the "]"?  Now that it's not paired with the "[", shouldn't
> that generate an error?

If your shell doesn't implement [ as a builtin (which bash does), then 
the ] just becomes a parameter to the [ binary, since the shell won't 
treat it specially at all. Only shells that have [ as a builtin will 
care about the matching ].

More information about the lfs-support mailing list