-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: don't display command not found #1408
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm which terminal did you test it with? For me with zsh and sh:
sh:
$ type podman > /dev/null
$ type podman 2> /dev/null
podman: not found
zsh:
% type podman > /dev/null
% type podman 2> /dev/null
podman not found
So it seems to me that >
does what I expect, and 2>
does not 🤔
odd, I tested it in zsh. |
|
Bash:
|
And since this is made for bash I think the PR is correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is made for sh
: #!/usr/bin/env sh
.
What about a tradeoff 😆? Works for me on sh
, zsh
and bash
.
Hm, you're right. :) |
Co-authored-by: Jonas Vautherin <jonas.vautherin@gmail.com>
Co-authored-by: Jonas Vautherin <jonas.vautherin@gmail.com>
This just caught my eye.