aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/type.fish
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-14 10:21:27 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-14 10:21:27 +1000
commitd58b9de63b7ac368ae67ab879c9a62df9ad46675 (patch)
treef87fb90559084b5b2fad4e03ad0569ebdc1e9cc7 /share/functions/type.fish
parent99a93b5add6ce77b619f8b72499dc58a91024522 (diff)
Use 'type -f' instead of 'which' to test for presense of command, since the latter does not set the exit status correctly on all platforms
darcs-hash:20060314002127-ac50b-6ed726bdcc9e3a7a9608a904c382973799dc73ef.gz
Diffstat (limited to 'share/functions/type.fish')
-rw-r--r--share/functions/type.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/type.fish b/share/functions/type.fish
index 4b48c122..f8454847 100644
--- a/share/functions/type.fish
+++ b/share/functions/type.fish
@@ -119,7 +119,7 @@ function type -d (N_ "Print the type of a command")
printf (_ 'file\n')
case path
- which $i
+ echo $path
end
if test $selection != multi
continue