Skip to content

DXE-1749 Command completion for bash is broken #165

@ikuwow

Description

@ikuwow

.bashrc:

[[ $(command -v akamai) ]] && eval "$(akamai --bash)"

When I type tabs 2 times to complete available command, the output looks broken:

$ akamai # Type tab 2 times here:
(C)                                 Output                              not
(alias:                             Section                             of
(aliases:                           Set                                 pd,
(default:                           Technologies,                       pipeline
--account-key                       Usage.                              pl,
--accountkey                        Usage:                              pm,
--bash                              []                                  proddeploy,
--edgerc                            [arguments...]                      property-manager
--help                              [command                            property-manager/pipeline)
--proxy                             [global                             property-manager/property-manager)
--section                           a                                   provided
--version                           akamai                              proxy
--zsh                               auto-complete                       search
-e                                  bash                                show
-generate-auto-complete             but                                 snippets,
-s                                  command                             switch
Account                             config                              the
Akamai                              credentials                         to
CLI                                 defined:                            uninstall
Commands:                           false)                              update
Commands::                          file                                upgrade
Copyright                           flag                                use
Flags:                              flags]                              value
Global                              get)                                value,
Inc                                 help                                version
Incorrect                           install                             zsh
Installed                           key
Location                            list

Info

  • akamai version 1.5.2 (Installed by brew)
  • macOS 12.6
  • bash 5.2.0(1)-release (Installed by brew)
$ akamai --version
akamai version 1.5.2
$ echo $BASH_VERSION
5.2.0(1)-release
$ uname -a
Darwin ******** 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64 arm Darwin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions