mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Submitted by: Wolfram Schneider <w@cs.tu-berlin.de>
The currently (1995/07/31 04:22:07) implemented if (-x "$prog") {
works only if you have '.' in your $PATH variable.
This commit is contained in:
parent
af2a00bbbc
commit
b60de1afb0
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
#
|
||||
# [whew!]
|
||||
#
|
||||
# $Id: which.pl,v 1.4 1995/01/30 22:21:29 jkh Exp $
|
||||
# $Id: which.pl,v 1.5 1995/07/31 04:22:07 asami Exp $
|
||||
|
||||
$all = 0;
|
||||
$silent = 0;
|
||||
|
|
@ -47,7 +47,7 @@ if ($ARGV[0] eq "-a") {
|
|||
}
|
||||
|
||||
foreach $prog (@ARGV) {
|
||||
if (-x "$prog") {
|
||||
if ("$prog" =~ '/' && -x "$prog") {
|
||||
print "$prog\n" unless $silent;
|
||||
$found = 1;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue