Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
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 p"
complete -c type -a "(complete -C(commandline -ct))" -x
Can you confirm the issue?
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
This might be the same issue:
$ complete -c xx -fa 'arg'
$ complete -c zz -fa '(complete -C"xx ")'
$ complete -C"zz " # prints nothing (expected: arg)
Strangely, the interactive completion zz <TAB> completes arg just fine.
Apparently fish has never supported recursive calls to complete, going back to when complete was added in 521d09b#diff-886dfa5a4f8c2403307d30799f49b9efR460.
Perhaps this can be changed now (or at least print a warning informing the user).
Raise the recursion limit of complete
Users should generally prefer to use complete --wraps but this
corrects some unexpected behavior.
No branches or pull requests