Page MenuHomeVyOS Platform

compare + TAB completion does not show proper username if user contains _
Resolved (N/A)PublicBUG

Description

The username I operate with is foo_admin but in compare completion helper it is displayed as foo admin

foo_admin@vyos# compare
Possible completions:
  <Enter>       Compare working & active configurations
  saved         Compare working & saved configurations
  <N>           Compare working with revision N
  <N> <M>       Compare revision N with M

  Revisions:
    0   2020-08-14 07:52:20 foo admin by cli

Details

Difficulty level
Unknown (require assessment)
Version
1.2.5
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

It looks like this problem is around here
https://github.com/vyos/vyatta-cfg/blob/current/etc/bash_completion.d/vyatta-cfg#L280-L290

called show-commit-log-brief

foo_bar@r4-roll# ${vyatta_sbindir}/vyatta-config-mgmt.pl --action=show-commit-log-brief
2020-09-26_15:48:28_foo_bar_by_cli 2020-09-26_15:48:02_foo_bar_by_cli 2020-09-26_15:46:53_vyos_by_cli 2020-09-26_15:28:30_vyos_by_other 2020-09-26_15:06:34_vyos_by_cli 2020-09-26_15:05:52_vyos_by_cli 2020-09-26_14:59:10_root_by_vyos-boot-config-loader 2020-09-26_14:58:29_vyos_by_cli 2020-09-26_14:58:18_vyos_by_cli 2020-09-26_14:57:53_vyos_by_cli 2020-09-26_14:57:50_vyos_by_cli 2020-09-26_14:55:11_vyos_by_cli 2020-09-26_14:35:54_root_by_vyos-boot-config-loader 2020-09-26_14:03:58_vyos_by_cli 2020-09-26_13:48:14_vyos_by_cli 2020-09-26_13:47:34_vyos_by_cli 2020-09-26_13:47:16_root_by_vyos-boot-config-loader 2020-09-26_13:46:26_vyos_by_cli 2020-09-26_13:46:10_vyos_by_cli 2020-09-26_13:44:52_vyos_by_cli 2020-09-26_13:15:12_vyos_by_cli 2020-09-26_12:12:06_vyos_by_cli 2020-09-26_12:11:46_vyos_by_cli 2020-09-26_12:11:24_root_by_vyos-boot-config-loader 2020-09-26_11:20:14_vyos_by_cli 2020-09-26_11:19:45_vyos_by_cli 2020-09-26_11:19:38_root_by_vyos-boot-config-loader 2020-09-26_11:18:43_vyos_by_cli 2020-09-26_10:33:29_root_by_vyos-boot-config-loader 2020-09-26_10:26:03_root_by_vyos-boot-config-loader 2020-09-24_09:23:29_vyos_by_cli 2020-09-24_09:23:24_root_by_vyos-boot-config-loader 2020-09-24_09:23:24_root_by_init [edit]
foo_bar@r4-roll#
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:28 PM
erkin removed a subscriber: Active contributors.
dmbaturin added a subscriber: dmbaturin.

No longer reproducible, the underscore is displayed as expected.