Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Bash completion provides wrong container name #38

Closed
lingxiaoyang opened this issue Mar 9, 2017 · 1 comment
Closed

Bash completion provides wrong container name #38

lingxiaoyang opened this issue Mar 9, 2017 · 1 comment

Comments

@lingxiaoyang
Copy link
Member

The names of first and last container are not correct. The control characters should be removed when parsing the lxdock command output.

~/test_lxdock$ lxdock shell [TAB]
^[[0malpine-3-1    archlinux-current  debian-stretch     fedora-25
alpine-3-2         centos-6           debian-wheezy      gentoo-current
alpine-3-3         centos-7           fedora-22          opensuse-13-2
alpine-3-4         debian-jessie      fedora-23          oracle-6
alpine-edge        debian-sid         fedora-24          oracle-7^[[0m

The control characters can be seen by less:

~/test_lxdock$ lxdock config --containers | less
ESC[0malpine-3-1
alpine-3-2
alpine-3-3
alpine-3-4
....
opensuse-13-2
oracle-6
oracle-7ESC[0m
@ellmetha
Copy link
Contributor

ellmetha commented Mar 9, 2017

Fixed in f55c823. Thanks for reporting this!

@ellmetha ellmetha closed this as completed Mar 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants