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:
Igor Murzov 2012-09-06 17:58:35 +04:00
parent 2babb45402
commit 3622f2f9e5

View File

@ -56,7 +56,7 @@ _tar()
esac
case $prev in
*$ext)
*${ext:-$tars})
# complete on files in tar file
#
# get name of tar file from command line