Gentoo Archives: gentoo-user

From: Eric Bliss <eric@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /usr/bin/test doesn't seem to do anything
Date: Fri, 27 Jan 2006 00:08:49
Message-Id: 200601261603.08758.eric@creativecow.net
In Reply to: [gentoo-user] /usr/bin/test doesn't seem to do anything by Robert Persson
1 On Thursday 26 January 2006 03:35 pm, Robert Persson wrote:
2 > Someone was kind enough to send me a script that calls /usr/bin/test. When
3 the
4 > script didn't work I realised that test was behaving strangely. Basically it
5 > doesn't seem to return anything.
6 >
7 > For instance "test -f /usr/bin/test" doesn't display any output.
8 >
9 > Nor does "test --help".
10 >
11 > Nor "test --version".
12 >
13 > The version I am using is from sys-apps/coreutils-5.2.1-r6 .
14 >
15 > It's very hard to do a google search for anything to do with troubleshooting
16 a
17 > program called "test". Anyone know what is going on here?
18 >
19
20 try "info coreutils test". Seems there may also be a "test" command built
21 into the shell. In addition, test itself doesn't seem like it prints out
22 information, but simply exits with an error code of 0, 1, or 2. It also said
23 something about using an unmatched square bracket when trying to use the
24 --help and --version options.
25
26 In general, it just looks kind of weird.
27
28 --
29 Eric Bliss
30 systems design and integration,
31 CreativeCow.Net
32 --
33 gentoo-user@g.o mailing list