diff --git a/CHANGES b/CHANGES index 6dd9123e..21d7bf9e 100644 --- a/CHANGES +++ b/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. diff --git a/completions/tar b/completions/tar index e38bc590..44c6b45a 100644 --- a/completions/tar +++ b/completions/tar @@ -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