chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ccd31
)
test -f for */* too
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Sat, 7 Apr 2007 13:08:13 +0000
(13:08 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Sat, 7 Apr 2007 13:08:13 +0000
(13:08 +0000)
pwhich
patch
|
blob
|
history
diff --git
a/pwhich
b/pwhich
index ebb54c3aed93520b14ca87a0d92e5103bb7661d6..262dc838553b1a370621ce1443330718f0736182 100755
(executable)
--- a/
pwhich
+++ b/
pwhich
@@
-7,7
+7,7
@@
for PROGRAM in "$@"; do
IFS=:
case $PROGRAM in
*/*)
- if [ -x "$PROGRAM" ]; then
+ if [ -
f "$PROGRAM" ] && [ -
x "$PROGRAM" ]; then
printf '%s\n' "$PROGRAM"
RET=0
fi