Minor: env
/exec
completion includes fish functions
#9897
Labels
Milestone
env
/exec
completion includes fish functions
#9897
I'm using
fish 3.6.1
(from the SUSE repo as recommended in fishshell.com) on Debian testing. It happens even if I run fish withsh -c 'env HOME=$(mktemp -d) fish'
.If I enter
env funce<tab>
, it completes toenv funced
. However,env funced
does not work sincefunced
is a fish function, not an external command.The same thing happens with
exec
.I think that both
env
andexec
should ideally only complete actual external commands, not fish functions.It is possible that some people are relying on this bug. For example, something like the following would work better with this bug present than without it:
As @zanchey pointed out on Gitter, this usecase would probably be best served by abbreviations.
The text was updated successfully, but these errors were encountered: