mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 09:31:16 -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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user