Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #80654 > unrolled thread

Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start

Started byнаб <nabijaczleweli@nabijaczleweli.xyz>
First post2023-10-13 01:10 +0200
Last post2024-08-10 14:30 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start наб <nabijaczleweli@nabijaczleweli.xyz> - 2023-10-13 01:10 +0200
    Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start Salvatore Bonaccorso <carnil@debian.org> - 2024-08-10 14:00 +0200
      Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start наб <nabijaczleweli@nabijaczleweli.xyz> - 2024-08-10 14:30 +0200
    Processed: Re: Bug#1053860: /usr/share/bash-completion/completions/ethtool:  completes with ^[[36m at the start "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-08-10 14:00 +0200
    Processed: Re: Bug#1053860: /usr/share/bash-completion/completions/ethtool:  completes with ^[[36m at the start "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-08-10 14:30 +0200

#80654 — Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start

Fromнаб <nabijaczleweli@nabijaczleweli.xyz>
Date2023-10-13 01:10 +0200
SubjectBug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Message-ID<HocYy-fpDh-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Package: ethtool
Version: 1:6.4-1
Severity: normal
File: /usr/share/bash-completion/completions/ethtool

Dear Maintainer,

  $ ethtool -g <TAB>
yields
  $ ethtool -g ^[[36m

  $ ethtool -g ^[[36m<TAB><TAB>
yields
  $ ethtool -g ^[[36m
  ^[[36mbond1      ^[[36mcard1      ^[[36mcard2      ^[[36mlo         ^[[36monboard1


Typing "ethtool -g ^[[36m" in and then tabbing yields nothing,
so this is probably a control sequence?
Indeed, typing control-[, [, 3, 6, m, dupa into cat shows dupa in blue.

Why?

Best,
наб

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: amd64, i386

Kernel: Linux 6.5.0-2-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ethtool depends on:
ii  libc6    2.37-12
ii  libmnl0  1.0.4-3

ethtool recommends no packages.

ethtool suggests no packages.

-- no debconf information

[toc] | [next] | [standalone]


#83361

FromSalvatore Bonaccorso <carnil@debian.org>
Date2024-08-10 14:00 +0200
Message-ID<J9SVj-43nu-3@gated-at.bofh.it>
In reply to#80654
Control: tags -1 + unreproducible

On Fri, Oct 13, 2023 at 12:58:31AM +0200, наб wrote:
> Package: ethtool
> Version: 1:6.4-1
> Severity: normal
> File: /usr/share/bash-completion/completions/ethtool
> 
> Dear Maintainer,
> 
>   $ ethtool -g <TAB>
> yields
>   $ ethtool -g ^[[36m
> 
>   $ ethtool -g ^[[36m<TAB><TAB>
> yields
>   $ ethtool -g ^[[36m
>   ^[[36mbond1      ^[[36mcard1      ^[[36mcard2      ^[[36mlo         ^[[36monboard1
> 
> 
> Typing "ethtool -g ^[[36m" in and then tabbing yields nothing,
> so this is probably a control sequence?
> Indeed, typing control-[, [, 3, 6, m, dupa into cat shows dupa in blue.

JFTR, I cannot reproduce this behaviour right now.

Regards,
Salvatore

[toc] | [prev] | [next] | [standalone]


#83410

Fromнаб <nabijaczleweli@nabijaczleweli.xyz>
Date2024-08-10 14:30 +0200
Message-ID<J9Tor-43OB-67@gated-at.bofh.it>
In reply to#83361

[Multipart message — attachments visible in raw view] — view raw

Control: reassign -1 bash-completion 1:2.11-8
Control: close -1 1:2.14.0-1

On Sat, Aug 10, 2024 at 01:52:31PM +0200, Salvatore Bonaccorso wrote:
> JFTR, I cannot reproduce this behaviour right now.

I can (bash 5.2.21-2.1, TERM=st-256color and TERM=dumb),
no ethtool-related aliases.

/usr/share/bash-completion/completions/ethtool uses
_available_interfaces(),
/usr/share/bash-completion/bash_completion 
which runs
    COMPREPLY=($({
    # ...
      ifconfig -a || ip link show
    # ...
    } 2>/dev/null | awk \
	        '/^[^ \t]/ { if ($1 ~ /^[0-9]+:/) { print $2 } else { print $1 } }'))
and thus
  $ ip link show | cat -A
  1: ^[[36mlo: ^[[0m<LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000$
      link/loopback ^[[33m00:00:00:00:00:00^[[0m brd ^[[33m00:00:00:00:00:00^[[0m$
  2: ^[[36mcard1: ^[[0m<BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master bond1 state ^[[32mUP ^[[0mmode DEFAULT group default qlen 1000$
      link/ether ^[[33m00:0a:f7:63:d5:12^[[0m brd ^[[33mff:ff:ff:ff:ff:ff^[[0m permaddr ^[[33m00:0a:f7:63:d5:10^[[0m$
because I have alias ip='ip -c'.

This means this is bash-completion bug,
and after updating to 1:2.14.0-1 from 1:2.11-8 this no longer happens.
Can't find a specific debbug to merge with or a specific changelog line
ofr this, so reassigning and closing at this granularity.

Best,

[toc] | [prev] | [next] | [standalone]


#83362 — Processed: Re: Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2024-08-10 14:00 +0200
SubjectProcessed: Re: Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Message-ID<J9SVj-43nu-7@gated-at.bofh.it>
In reply to#80654
Processing control commands:

> tags -1 + unreproducible
Bug #1053860 [ethtool] /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Added tag(s) unreproducible.

-- 
1053860: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053860
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#83409 — Processed: Re: Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2024-08-10 14:30 +0200
SubjectProcessed: Re: Bug#1053860: /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Message-ID<J9Tor-43OB-77@gated-at.bofh.it>
In reply to#80654
Processing control commands:

> reassign -1 bash-completion 1:2.11-8
Bug #1053860 [ethtool] /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Bug reassigned from package 'ethtool' to 'bash-completion'.
No longer marked as found in versions ethtool/1:6.4-1.
Ignoring request to alter fixed versions of bug #1053860 to the same values previously set
Bug #1053860 [bash-completion] /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Marked as found in versions bash-completion/1:2.11-8.
> close -1 1:2.14.0-1
Bug #1053860 [bash-completion] /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Marked as fixed in versions bash-completion/1:2.14.0-1.
Bug #1053860 [bash-completion] /usr/share/bash-completion/completions/ethtool: completes with ^[[36m at the start
Marked Bug as done

-- 
1053860: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053860
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web