Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

complete -C fails when recursing? #3474

Open
Ambrevar opened this Issue Oct 19, 2016 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

Ambrevar commented Oct 19, 2016

fish: 2.3.1, Arch Linux, urxvt 9.22

Enter complete -C"type p": only functions and builtins will get printed.
type has the following completion definition:

complete -c type -a "(complete -C(commandline -ct))" -x

Can you confirm the issue?

@faho faho added the bug label Oct 19, 2016

@faho faho added this to the fish-future milestone Oct 19, 2016

Member

faho commented Oct 19, 2016

Yes, I can reproduce this one. I could swear that it has already been reported, but I can't find that report currently.

The cause is probably that the inner commandline still gets the real commandline, while complete -C should enter an environment with a fake one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment