tar: Fix detection if the $prev is a tar file.
It also makes the completion work better with long options (Debian: #685223)
This commit is contained in:
parent
2babb45402
commit
3622f2f9e5
@ -56,7 +56,7 @@ _tar()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
*$ext)
|
*${ext:-$tars})
|
||||||
# complete on files in tar file
|
# complete on files in tar file
|
||||||
#
|
#
|
||||||
# get name of tar file from command line
|
# get name of tar file from command line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user