[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0f450219b667ec5f8d951b0c41593c7b983e2ada
Ville Skyttä
ville.skytta at iki.fi
Mon Nov 1 17:30:48 UTC 2010
The following commit has been merged in the master branch:
commit 494c44f5a36d29955f46efe2289d0f945a8039c5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Nov 1 19:21:55 2010 +0200
Protect filenames with spaces within tar files.
diff --git a/CHANGES b/CHANGES
index 6dd9123..21d7bf9 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 e38bc59..44c6b45 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
--
bash-completion
More information about the Bash-completion-commits
mailing list