From 27a6b3e94f945fc031c724ea9c495c977bc2fa57 Mon Sep 17 00:00:00 2001 From: asami Date: Mon, 30 Jan 1995 17:49:19 +0000 Subject: Cleanup. Submitted by: Wolfram Schneider --- usr.bin/which/which.pl | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'usr.bin/which') diff --git a/usr.bin/which/which.pl b/usr.bin/which/which.pl index bd24a2a..a8d600b 100755 --- a/usr.bin/which/which.pl +++ b/usr.bin/which/which.pl @@ -31,7 +31,7 @@ # # [whew!] # -# $Id: which.pl,v 1.1 1995/01/26 21:49:54 jkh Exp $ +# $Id: which.pl,v 1.2 1995/01/28 17:35:56 asami Exp $ $all = 0; $silent = 0; @@ -49,17 +49,11 @@ if ($ARGV[0] eq "-a") { foreach $prog (@ARGV) { foreach $e (@path) { if (-x "$e/$prog") { - if (! $silent) { - print "$e/$prog\n"; - } + print "$e/$prog\n" unless $silent; $found = 1; last unless $all; } } } -if ($found) { - exit 0; -} else { - exit 1; -} +exit (!$found); -- cgit v1.1