[Bug 278608] New: bash completion for bzip2 does not handle filenames with spaces
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.
https://bugzilla.novell.com/show_bug.cgi?id=278608 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mkoenig@novell.com |screening@forge.provo.novell| |.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=278608 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from mkoenig@novell.com 2007-06-01 08:48 MST ------- Fixed in stable. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=278608#c2 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #2 from Christian Boltz <suse-beta@cboltz.de> 2007-09-10 14:25:42 MST --- VERIFIED in 10.3 beta3 - thanks for fixing! -- 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.
participants (1)
-
bugzilla_noreply@novell.com