Bug 1316364 - Auto completion does not work normaly when command name is prefixed with path
Summary: Auto completion does not work normaly when command name is prefixed with path
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 3.7.0
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 05:21 UTC by Xingxing Xia
Modified: 2017-11-28 21:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-28 21:51:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

Description Xingxing Xia 2016-03-10 05:21:21 UTC
Description of problem:
Auto completion works with single oc, but does not work normaly when oc is prefixed with path. 
/bin/openshift, /bin/oadm are similar
Relative path is similar: bin/oc, ./oc
Other software like git has no this problem

Version-Release number of selected component (if applicable):
openshift/oc v3.2.0.1
kubernetes v1.2.0-alpha.7-703-gbc4550d

How reproducible:
Always

Steps to Reproduce:
/bin/oc cre[press Tab]    gets no sub-command
/bin/oc [press Tab]       gets extra "oc":
/bin/oc oc 
Press Tab again,  gets sub-commands:
/bin/oc oc
adm              create           explain          logs             
...

Actual results:
Auto completion is abnormal.

Expected results:
Should auto complete successfully.

Additional info:

Comment 2 Xingxing Xia 2016-07-26 07:18:04 UTC
Not reproduced now in latest puddle version:
atomic-openshift-clients-3.3.0.10-1.git.0.c419cc7.el7.x86_64

`/bin/oc + TAB` works as same as `oc + TAB`.

Could move to ON_QA if suitable. Thanks!

Comment 3 Xingxing Xia 2017-08-25 07:15:55 UTC
Though comment 2 verified, double checked in v3.6, `/bin/oc + TAB` works

Comment 7 errata-xmlrpc 2017-11-28 21:51:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:3188


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