diff options
author | Steve Price <steve@FreeBSD.org> | 1996-12-25 00:08:10 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1996-12-25 00:08:10 +0000 |
commit | 9d633f68d7541d1cd769e9c7b74d00af0af2feb2 (patch) | |
tree | 36474e143a3220d751f271ad03254e640c10ea54 | |
parent | f98e1b8071abe859e758f8fa1a1907208d40084e (diff) | |
download | src-9d633f68d7541d1cd769e9c7b74d00af0af2feb2.tar.gz src-9d633f68d7541d1cd769e9c7b74d00af0af2feb2.zip |
Fix handling of -o and -a operators in the 3 argument case.
Submitted by: Tom Rush <tarush@mindspring.com>
Notes
Notes:
svn path=/head/; revision=20903
-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 aef3d7e95836..3badcff2e825 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); |