GithubHelp home page GithubHelp logo

Comments (10)

seanb4t avatar seanb4t commented on July 29, 2024 1
XXX@abyss ~
λ uname -a
Linux abyss 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

XXX@abyss ~
λ where command
command: shell built-in command

XXX@abyss ~
λ \command \command
zsh: command not found: command

XXX@abyss ~
λ echo $ZSH_VERSION
5.8

XXX@abyss ~
λ echo $PATH |sed -e s/yyy/XXX/g
/home/XXX/.rbenv/shims:/home/XXX/.rbenv/bin:/home/XXX/.zinit/plugins/laggardkernel---git-ignore/bin:/home/XXX/.rbenv/shims:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/usr/local/bin:/usr/local/sbin:/home/XXX/.zinit/plugins/dandavison---delta/delta:/home/XXX/.zinit/plugins/BurntSushi---ripgrep/rg:/home/XXX/.zinit/plugins/sharkdp---bat/bat:/home/XXX/.rbenv/bin:/home/XXX/.zinit/polaris/bin:/home/XXX/anaconda3/condabin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/XXX/Code/Go/bin:/home/XXX/.dotfiles/bin:/home/XXX/bin:/home/XXX/.zinit/plugins/unixorn---git-extra-commands/bin:/home/XXX/.zinit/plugins/zpm-zsh---colorize/bin:/home/XXX/.zinit/plugins/reegnz---jq-zsh-plugin/bin:/home/XXX/.zinit/plugins/droctothorpe---kubecolor/bin:/home/XXX/.zinit/plugins/zpm-zsh---tmux/bin:/home/XXX/.zinit/plugins/unixorn---git-extra-commands/bin:/home/XXX/.zinit/plugins/zpm-zsh---colorize/bin:/home/XXX/.zinit/plugins/reegnz---jq-zsh-plugin/bin:/home/XXX/.zinit/plugins/droctothorpe---kubecolor/bin:/home/XXX/.zinit/plugins/zpm-zsh---tmux/bin

from zsh-abbr.

swrenn avatar swrenn commented on July 29, 2024 1

➜ ~ uname -a
Linux pop-os 5.4.0-7626-generic #30158816988320.04~bbe668a-Ubuntu SMP Wed Apr 29 21:00:02 UTC x86_64 x86_64 x86_64 GNU/Linux
➜ ~ echo $ZSH_VERSION
5.8
➜ ~ where command
command: shell built-in command
➜ ~ echo $PATH | tr : '\n'
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
[others...]

from zsh-abbr.

olets avatar olets commented on July 29, 2024 1

Belatedly acknowledging more contributors in https://github.com/olets/zsh-abbr#community and https://zsh-abbr.olets.dev/community/

Would you like to be added @swrenn ? If so, I'll have the all-contributors bot open a pull request. Then I'll tag you in it to review for correct info

from zsh-abbr.

olets avatar olets commented on July 29, 2024 1

same for @seanb4t

from zsh-abbr.

olets avatar olets commented on July 29, 2024

Thanks for the report!

command is one of the zsh builtin commands, so I would expect this to work as long as /usr/bin has not been removed from your path.

What is the output of running these two commands in your terminal?

echo $PATH

# --
# edit: probably enough to specifically check whether /usr/bin is in PATH:
typeset -a path_segments=( ${(s.:.)"$(echo $PATH)"} ) && echo $path_segments[(I)/usr/bin]

and

where command

from zsh-abbr.

olets avatar olets commented on July 29, 2024

Also what system are you on? How about you @sean-brandt?

from zsh-abbr.

olets avatar olets commented on July 29, 2024

Thanks. Interesting, on macOS I get

% where command
command: shell built-in command
/usr/bin/command

I'll see what I can come up with.

from zsh-abbr.

olets avatar olets commented on July 29, 2024

Should be fixed in master, let me know. Can cut a release for package manager users tomorrow

from zsh-abbr.

swrenn avatar swrenn commented on July 29, 2024

I just pulled and tested. No errors.

P.S. Thanks for building this extension.

from zsh-abbr.

olets avatar olets commented on July 29, 2024

Released in 3.3.1, and now I have a Linux testing setup so hope to catch little platform differences like this going forward.

Glad you find it useful!

EDIT 2024: this issue still gets some traffic. Maybe it's just bots and scrapers. If you are a human and get this bug still, please let me know.

from zsh-abbr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.