mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 07:35:43 +08: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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user