Imported from ../bash-2.02.tar.gz.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
inpath()
|
||||
{
|
||||
local PROG
|
||||
path=$(echo $PATH | sed 's/^:/.:/
|
||||
s/::/:.:/g
|
||||
s/:$/:./
|
||||
@@ -9,7 +10,5 @@ inpath()
|
||||
do
|
||||
[ -x $x/$1 ] && { PROG=$x/$1; break; }
|
||||
done
|
||||
[ -z "$PROG" ]
|
||||
return
|
||||
[ -n "$PROG" ]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user