[Bug 1227807] New: bash-completion: Zypper all auto-completion fails after "{}".
https://bugzilla.suse.com/show_bug.cgi?id=1227807 Bug ID: 1227807 Summary: bash-completion: Zypper all auto-completion fails after "{}". Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.6 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: jakubby@protonmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Consider the following command: `sudo zypper install ninja gcc SDL2-devel libopenal{0,1}` After libopenal{0,1} auto completion fails: `sudo zypper install ninja gcc SDL2-devel libopenal{0,1} wx` If wx is placed before libopenal{0,1} auto completion doesn't fail: `sudo zypper install ninja gcc SDL2-devel wxWidgets-3_ libopenal{0,1}` -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 Andreas Stieger <Andreas.Stieger@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |zypp-maintainers@suse.de Component|Basesystem |libzypp -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 https://bugzilla.suse.com/show_bug.cgi?id=1227807#c3 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(werner@suse.com) | --- Comment #3 from Dr. Werner Fink <werner@suse.com> --- (In reply to Michael Andres from comment #2)
@Werner any idea why bash does not complete after a {}? (my message to you in SLACK has a few more details)
AFAIK the braces should be expanded *before* completion like with echo libopenal{0,1} libopenal0 libopenal1 but what I see is compgen -W '' -- 'libopenal{0,1}' if I trace the bash with `set -x` which is correct ... AFAIK there is no completion working with {x,y} nor with {x..y} as this would require an eval builtin and introduces a security risk (let one of the arguments be a executable script below e.g. /tmp/ with the same name) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 https://bugzilla.suse.com/show_bug.cgi?id=1227807#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> --- Btw: sudo zypper install ninja gcc SDL2-devel libopenal{0,1} wx<ENTER> does work (no completion at allt) as here zypper see libopenal0 and libopenal1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |werner@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 https://bugzilla.suse.com/show_bug.cgi?id=1227807#c6 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ma@suse.com Flags| |needinfo?(ma@suse.com) --- Comment #6 from Dr. Werner Fink <werner@suse.com> --- Where the _comp_load come from? noether:~ # grep _comp_load /usr/share/bash-completion/ -rs noether:~ # echo $? 1 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 https://bugzilla.suse.com/show_bug.cgi?id=1227807#c7 --- Comment #7 from Dr. Werner Fink <werner@suse.com> --- I do not see this on my Leap 15.4 I see zypper se l{} yyy + local cmd=zypper + __load_completion zypper -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 https://bugzilla.suse.com/show_bug.cgi?id=1227807#c8 --- Comment #8 from Dr. Werner Fink <werner@suse.com> --- Ahh ... on a SLE-15-SP6 I can reproduce localhost:~ # zypper se l{abc} yyy + local 'cmd=abc}' + __load_completion 'abc}' -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 https://bugzilla.suse.com/show_bug.cgi?id=1227807#c11 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo? --- Comment #11 from Dr. Werner Fink <werner@suse.com> --- The problem was that my bash was one of the latest ... then the line complete -D -F _completion_loader does work prefect for arguments including {..,..}. I've now ported back the change from bash 5.2 to bash 4.4 on SLE-15-SP4 and up (which includes LEAP 15.6 as well) and this works well as I've verified. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1227807 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com