https://bugzilla.novell.com/show_bug.cgi?id=278608 Summary: bash completion for bzip2 does not handle filenames with spaces Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse-beta@cboltz.de QAContact: qa@suse.de bash completion for bzip2 does not handle filenames with spaces: # touch 'this is a test' # ls -l insgesamt 0 -rw-r--r-- 1 cb users 0 28. Mai 16:10 this is a test # bzip2 th<tab><tab> a is test this # bzip2 th I also tested with the bash-completion package from factory (bash-completion-20060301-17), it still shows this buggy behaviour. Patch to fix the problem, idea taken from gzip completion: --- bash_completion.orig 2007-05-28 16:22:07.000000000 +0200 +++ bash_completion 2007-05-28 16:22:24.000000000 +0200 @@ -3323,7 +3323,7 @@ have bzip2 && _bzip2() { - local cur prev xspec + local cur prev xspec IFS=$'\t\n' COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} (This doesn't handle all "funny" filenames, but spaces are probably the most common. And it makes bzip2-completion bug-compatible to gzip completion ;-) I also reported this issue to ian@caliban.org, so it should be fixed in the next bash-completion release. Unfortunately I made the experience that this might take "some" time - at least this happened when I mailed a patch last time. Therefore fixing this in the openSUSE package might be a good idea... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.