chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
quick-and-dirty script to reverse the output of od
[bin.git]
/
pwhich
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