Bug 2170344 - ovs-vsctl autocomplete misbehaving
Summary: ovs-vsctl autocomplete misbehaving
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch
Version: RHEL 8.0
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Timothy Redaelli
QA Contact: qding
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-16 08:12 UTC by Martin Necas
Modified: 2023-07-13 07:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-2691 0 None None None 2023-02-16 08:13:52 UTC

Description Martin Necas 2023-02-16 08:12:10 UTC
Description of problem:
When adding a port to some bridge and pressing the tab for autocomplete, the ovs-vsctl throws an error. 




Version-Release number of selected component (if applicable):
[root@ovs ~]# ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.17.6
DB Schema 8.3.0

How reproducible:


Steps to Reproduce:
1. ovs-vsctl add-port mybridge 
2. *press tab*

Actual results:

[root@ovs ~]# ovs-vsctl add-port mybridge enp-bash: export: `BASH_FUNC_which%%': not a valid identifier
-bash: export: `${which_declare}': not a valid identifier
-bash: export: `)': not a valid identifier
-bash: export: `|': not a valid identifier
-bash: export: `/usr/bin/which': not a valid identifier
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: `$@': not a valid identifier
-bash: export: `}': not a valid identifier

Enter a new port:
[root@ovs ~]$ ovs-vsctl add-port mybridge enp^C



Expected results:


Additional info:

Comment 1 Timothy Redaelli 2023-05-26 14:20:02 UTC
I can replicate that also on latest master version and it seems the reason is that something changed on bash for shellshock, the bash completion script should be definitely fixed


Note You need to log in before you can comment on or make changes to this bug.