Skip to content

Bash autocomplete does not work correctly #6461

@pavel-zhigulin

Description

@pavel-zhigulin

Problem
In bash, when you pressing twice you'll get non-exist commands in autocomplete (such a, and, all, etc)

Steps

  1. run bash
  2. write cargo and press key twice
  3. check output:
$ cargo
Display all 148 possibilities? (y or n)
(src/main.rs)      binary             crate              file               If                 local              not                qualified          Save               uninstall
<path>             build              crates.io          files              in                 locally.           of                 read               search             unit
a                  Build              Create             fix                including          locate-project     on                 read-manifest      Search             update
all                by                 custom             flags.             index              location           Output             recorded           Show               Update
an                 cargo              dependencies       fmt                information        lock               overrides,         registry           specification      Upload
and                Cargo.toml         directory          for                init               lockfile           owner              Remove             specified          used
api                check              distributable      format             install            login              owners             reported           specified,         using
artifacts          Check              doc                from               Install            machine-readable   package            repository         stdin.             verify-project
as                 Checkout           documentation      fully              integration        main               package,           representation     tarball            version
Assemble           clean              documentation,     Generate           into               Manage             packages           resolved           test               versions
at                 clippy             errors             generated          is                 manifest           past               run                tests              warnings
Automatically      Compile            Execute            generate-lockfile  it                 manifest.          pkgid              Run                that               will
be                 concrete           existing           Git                its                metadata           Print              Rust               the                yank
bench              copy               fetch              git-checkout       JSON               network            publish            rustc              to
benchmarks         correctness        Fetch              has                lint               new                pushed             rustdoc            token

Output of cargo version:
cargo 1.31.0 (339d9f9 2018-11-16)

OS: Linux (bash) / Windows (Cygwin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions