1 |
On Tue, Oct 11, 2011 at 10:35 PM, William Kenworthy <billk@×××××××××.au> wrote: |
2 |
> I have been checking my system for some deep seated problems and in the |
3 |
> process, ran across the fact that "equery files sys-apps/coreutils-8.7" |
4 |
> shows a file included called "/usr/bin/[" - thats right, left square |
5 |
> bracket! |
6 |
> |
7 |
> Is that a bug or if real, what would you use it for? It doesnt seem to |
8 |
> be on the file system ... |
9 |
> |
10 |
> moriah ~ # /usr/bin/[ |
11 |
> /usr/bin/[: missing `]' |
12 |
> moriah ~ # |
13 |
> |
14 |
> doesnt show much! |
15 |
|
16 |
'/usr/bin/[' is a synonym for the '/usr/bin/test' utility. It's used |
17 |
in shell scripts like |
18 |
|
19 |
if [ -f /etc/passwd ] ; then |
20 |
... |
21 |
|
22 |
So don't worry. It's supposed to be there. |
23 |
-- |
24 |
Manuel A. McLure WW1FA <manuel@××××××.org> <http://www.mclure.org> |
25 |
...for in Ulthar, according to an ancient and significant law, |
26 |
no man may kill a cat. -- H.P. Lovecraft |