You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that I can't use compopt (e.g. to set -o nospace) in custom bash completion functions.
This is due to the function in question being executed in a subshell.
It would be great to support this.
The easiest and most stable solution seems to be to write to a tmpfile and read that back in the next step.
I'll open a PR for this, but I am also happy to discuss other solutions!
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
I found that I can't use compopt (e.g. to set
-o nospace
) in custom bash completion functions.This is due to the function in question being executed in a subshell.
It would be great to support this.
The easiest and most stable solution seems to be to write to a tmpfile and read that back in the next step.
I'll open a PR for this, but I am also happy to discuss other solutions!
Thanks in advance!
The text was updated successfully, but these errors were encountered: