[Bug 905348] New: bash: tab completion with shell variable changes command line with backslash
http://bugzilla.novell.com/show_bug.cgi?id=905348 Bug ID: 905348 Summary: bash: tab completion with shell variable changes command line with backslash Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: rcoe@wi.rr.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- export FOO=/some/directory somecommand $FOO/logs/def<TAB> When I hit tab the variable $FOO becomes \$FOO in the command line (When I hit tab the variable $FOO becomes <backslash>$FOO in the command line) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 --- Comment #3 from Rich Coe <rcoe@wi.rr.com> --- If I disable /etc/profile.d/bash_completion.sh, this problem does not occur. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 --- Comment #4 from Andrei Borzenkov <arvidjaar@gmail.com> --- (In reply to Werner Fink from comment #2)
I've no time to hunt this bug. Is there any volunteer around here? IMHO the shell function _minimal does not handle the directory case of the value of a variable.
No. There are two chains - for $FOO and $FOO/. The former call chain is _longopt => _init_completion => _variables. It actually does everything right, but completions that are using _longopt also add filename context (-o filenames) which seem to cause bash to quote content of COMPREPLY. Default bash completions do not set filenames option or explicitly unset it if current word looks like variable expansion. The latter explicitly quotes argument in _filedir. I'm afraid there is no simple fix. _filedir should probably split string on '/', add initial part as prefix and complete only final part. But look at zsh _path_files to get an idea what it involves ... The actual question is - why systemd completion requires bash-completion at all? On the quick glance it does not use anything from its framework. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 SMASH SMASH <smash_bz@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| | maint:planned:update -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| maint:planned:update |maint:planned:update | |ibs:running:1166:low -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 http://bugzilla.novell.com/show_bug.cgi?id=905348#c22 Sascha Weber <saweber@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lchiquitto@suse.com, | |saweber@suse.com Flags| |needinfo?(lchiquitto@suse.c | |om) --- Comment #22 from Sascha Weber <saweber@suse.com> --- Hi, PORSCHE is wondering why this still has not been released as a Maintenance update. The last update was from September 2015 !!! Can we please get that done? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|maint:planned:update | ibs:running:1166:low |ibs:running:1166:low | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| ibs:running:1166:low |ibs:running:1166:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:1166:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |ibs:running:2661:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:2661:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=905348 http://bugzilla.novell.com/show_bug.cgi?id=905348#c32 --- Comment #32 from Swamp Workflow Management <swamp@suse.de> --- SUSE-RU-2016:1515-1: An update that solves one vulnerability and has 29 fixes is now available. Category: recommended (moderate) Bug References: 880468,889319,903362,903440,903738,905348,922758,923777,924994,931955,940835,940837,943415,946875,947494,949754,950778,953691,954482,956540,958462,959299,963140,963399,970404,972684,975082,976141,977259,977336 CVE References: CVE-2015-5218 Sources used: SUSE Linux Enterprise Workstation Extension 12 (src): util-linux-2.25-24.3.2 SUSE Linux Enterprise Software Development Kit 12 (src): util-linux-2.25-24.3.2 SUSE Linux Enterprise Server 12-SP1 (src): bash-completion-2.1-8.1 SUSE Linux Enterprise Server 12 (src): bash-completion-2.1-8.1, python-libmount-2.25-24.3.3, util-linux-2.25-24.3.2, util-linux-systemd-2.25-24.3.1 SUSE Linux Enterprise Desktop 12-SP1 (src): bash-completion-2.1-8.1 SUSE Linux Enterprise Desktop 12 (src): bash-completion-2.1-8.1, python-libmount-2.25-24.3.3, util-linux-2.25-24.3.2, util-linux-systemd-2.25-24.3.1 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com