diff options
author | asami <asami@FreeBSD.org> | 1995-01-30 17:49:19 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1995-01-30 17:49:19 +0000 |
commit | 27a6b3e94f945fc031c724ea9c495c977bc2fa57 (patch) | |
tree | 6d52e5a875030f98b2679fc8d26ca9b4a2ca15ba /usr.bin/which/which.pl | |
parent | b326f90c973cfeef4c85ac54ed28e71ecb11ed94 (diff) | |
download | FreeBSD-src-27a6b3e94f945fc031c724ea9c495c977bc2fa57.zip FreeBSD-src-27a6b3e94f945fc031c724ea9c495c977bc2fa57.tar.gz |
Cleanup.
Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
Diffstat (limited to 'usr.bin/which/which.pl')
-rwxr-xr-x | usr.bin/which/which.pl | 12 |
1 files changed, 3 insertions, 9 deletions
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); |