Protect filenames with spaces within tar files.
This commit is contained in:
parent
a58697d154
commit
494c44f5a3
2
CHANGES
2
CHANGES
@ -15,7 +15,7 @@ bash-completion (2.x)
|
||||
*.awb, and *.iso (Alioth: #311420) to mplayer filename completions.
|
||||
* Add "short" tarball extensions to unxz, unlzma etc completions.
|
||||
* Improve /etc/init.d/*, ipmitool, jar, javadoc, man, mencoder, mkdir,
|
||||
mplayer, povray, rpmbuild, sqlite3, wodim, and general help parsing
|
||||
mplayer, povray, rpmbuild, sqlite3, tar, wodim, and general help parsing
|
||||
completions.
|
||||
* Fix p4 and povray completions (Alioth: #312625).
|
||||
* Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions.
|
||||
|
@ -48,7 +48,8 @@ _tar()
|
||||
# devise how to untar and list it
|
||||
untar=t${COMP_WORDS[1]//[^Izjyf]/}
|
||||
|
||||
COMPREPLY=( $( compgen -W "$( printf '%s ' $( tar $untar $tar \
|
||||
local IFS=$'\n'
|
||||
COMPREPLY=( $( compgen -W "$( printf '%s\n' $( tar $untar $tar \
|
||||
2>/dev/null ) )" -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user