summaryrefslogtreecommitdiff
path: root/which
diff options
context:
space:
mode:
Diffstat (limited to 'which')
-rw-r--r--which3
1 files changed, 1 insertions, 2 deletions
diff --git a/which b/which
index 6fd19ae..894f0bd 100644
--- a/which
+++ b/which
@@ -28,8 +28,7 @@ else
ALLRET=0
fi
case $PATH in
- *::) : "not *DIR:" ;;
- *:) PATH="$PATH:" ;;
+ (*[^:]:) PATH="$PATH:" ;;
esac
for PROGRAM in "$@"; do
RET=1