Bug 1316364

Summary: Auto completion does not work normaly when command name is prefixed with path
Product: OpenShift Container Platform Reporter: Xingxing Xia <xxia>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: low    
Version: 3.2.0CC: aos-bugs, bleanhar, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 21:51:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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