Have type deal with both flavors of fileless function (#6421)

* Deal with *both* types of dynamic function

* Use a guard (`--`) when `-` is an argument
This commit is contained in:
Dan Martinez 2019-12-12 11:42:11 -08:00 committed by Fabian Homborg
parent 9a3886dc2b
commit 4e52feb51a

View File

@ -58,7 +58,7 @@ function type --description 'Print the type of a command'
functions $i
else
set -l func_path (functions --details $i)
if test $func_path != -
if not contains -- $func_path - stdin
printf (_ ' (defined in %s)') $func_path
end
echo