mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
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:
committed by
Fabian Homborg
parent
9a3886dc2b
commit
4e52feb51a
@@ -58,7 +58,7 @@ function type --description 'Print the type of a command'
|
|||||||
functions $i
|
functions $i
|
||||||
else
|
else
|
||||||
set -l func_path (functions --details $i)
|
set -l func_path (functions --details $i)
|
||||||
if test $func_path != -
|
if not contains -- $func_path - stdin
|
||||||
printf (_ ' (defined in %s)') $func_path
|
printf (_ ' (defined in %s)') $func_path
|
||||||
end
|
end
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user