mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Minor code tweak in type function, and add a missing newline to an output string
darcs-hash:20060317132256-ac50b-87c066ec3aba2eded333ecbf2198de001c313570.gz
This commit is contained in:
parent
6ba5d80a20
commit
580ec26885
1 changed files with 2 additions and 4 deletions
|
@ -106,9 +106,7 @@ function type -d (N_ "Print the type of a command")
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l path (which $i ^/dev/null)
|
set -l path (which $i ^/dev/null)
|
||||||
set -l path_ok 0
|
if test -x (echo $path)
|
||||||
count $path >/dev/null; and test -x $path; and set -l path_ok 1
|
|
||||||
if test $path_ok = 1
|
|
||||||
set status 0
|
set status 0
|
||||||
set found 1
|
set found 1
|
||||||
switch $mode
|
switch $mode
|
||||||
|
@ -127,7 +125,7 @@ function type -d (N_ "Print the type of a command")
|
||||||
end
|
end
|
||||||
|
|
||||||
if test $found = 0
|
if test $found = 0
|
||||||
printf (_ "%s: Could not find '%s'") type $i
|
printf (_ "%s: Could not find '%s'\n") type $i
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue