diff options
author | steve <steve@FreeBSD.org> | 1996-12-25 00:08:10 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1996-12-25 00:08:10 +0000 |
commit | 9079a13346057de25ffcb866d9914814f17dff5b (patch) | |
tree | 36474e143a3220d751f271ad03254e640c10ea54 /bin/test | |
parent | 3d5f13bf9363e3e53a0cb471b9c8efcb3651b0f6 (diff) | |
download | FreeBSD-src-9079a13346057de25ffcb866d9914814f17dff5b.zip FreeBSD-src-9079a13346057de25ffcb866d9914814f17dff5b.tar.gz |
Fix handling of -o and -a operators in the 3 argument case.
Submitted by: Tom Rush <tarush@mindspring.com>
Diffstat (limited to 'bin/test')
-rw-r--r-- | bin/test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index aef3d7e..3badcff 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: test.c,v 1.13 1996/03/11 11:01:03 joerg Exp $ + * $Id: test.c,v 1.14 1996/12/14 06:16:51 steve Exp $ */ #ifndef lint @@ -157,7 +157,7 @@ main(argc, argv) ret_val = posix_unary_op(&argv[1]); if (ret_val >= 0) return (!ret_val); - } else { + } else if (lookup_op(argv[2], andor_op) < 0) { ret_val = posix_binary_op(&argv[1]); if (ret_val >= 0) return (ret_val); |