-
Notifications
You must be signed in to change notification settings - Fork 390
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
long option support for tar broken with version 2.4 #98
Comments
A patch |
@bitstreamout Could you file a pull request along with test case demonstrating the failure and the fix for this? @praiskup FYI |
Marking those options as "mode" options looks like a correct fix. Thanks for the patch! |
The issue is still present. Even worse, when completing the word $ tar --create --file a.tar.gz ./[TAB]
./A ./c ./d ./r ./t ./u ./x |
yedayak
added a commit
to yedayak/bash-completion
that referenced
this issue
May 17, 2024
Currently when using long options, we don't complete files to add to the archive, but show options. Handle long options in tar_mode to fix this. Fixes scop#98
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
tar --create --file test.tar <TAB>
does show only option but no files nor directories
tar --create -f test.tar -<TAB>
-A -c -d -r -t -u -x
... the same for mixed options
tar --create -f test.tar <TAB>
tar --create f test.tar <TAB>
The text was updated successfully, but these errors were encountered: