diff options
Diffstat (limited to 'which')
-rw-r--r-- | which | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -28,8 +28,7 @@ else ALLRET=0 fi case $PATH in - *::) : "not *DIR:" ;; - *:) PATH="$PATH:" ;; + (*[^:]:) PATH="$PATH:" ;; esac for PROGRAM in "$@"; do RET=1 |