Skip to content

bottom: Same problem as with bat #260

@axgkl

Description

@axgkl

Sry for the noise and no stress - but after trying bat, tried bottom - and they ship now also with completion file

i.e. you need also here the "^btm$" instead the -btm.

manual download:

root@ax-proxy:~# tar xfvz bottom_x86_64-unknown-linux-gnu.tar.gz
btm
completion/
completion/btm.elv
completion/_btm
completion/btm.fish
completion/_btm.ps1
completion/btm.bash


root@ax-proxy:~# ./btm --version
bottom 0.9.6

root@ax-proxy:~# bottom
2024-07-26T03:52:10+02:00 FTL unable to execute bottom error="exec format error"


root@ax-proxy:~# head .binenv/binaries/bottom/0.9.6
_btm() {
    local i cur prev opts cmd
    COMPREPLY=()

Hmm, that's not so good, when authors add completion files to their releases.

Maybe(?), when trying to identifying the binary and >1 match, a few options which come to my mind:

  1. do a file check (but file is not always there)
  2. take the biggest, when >1 match?
  3. check for the executable flag
  4. Add the "^..$" everywhere
  5. Ignore all directories with 'complet' in them
  6. Ask the user when in doubt
  7. Prefer an exact match over any other match

Guess 7, 2 and/or 3 would elimate most of such probs, no?

Cheers, I love this tool, fastest installer of them all 💟

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