-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
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? Sign in to your account
comp_compgen: option -C no longer checks if OPTARG is empty #1290
base: main
Are you sure you want to change the base?
Conversation
I believe this should be fixed at the side of |
I tried
In the changes at 6b3dfa5, there are many modifications besides Moreover, in the Of course, aside from the umount command, I haven't found similar issues elsewhere, so modifying |
OK, thanks. Nevertheless, I don't think it would be right just to suppress the error message when one sees an error message.
Yes, they should also be fixed if they would pass an invalid directory. Before my first reply, I actually had checked it after I saw your PR. The cases for
No, it's used to check whether the
This is false. It's the opposite. It relies on the fact that the empty directory for
Could you also look at |
The
-C
option in _comp_compgen, similar to the-P
option in bash's compgen, should support passing an empty string, for example:compgen -P ""-f
fix #1260