Skip to content

change from using which to using hash#10

Open
cardoe wants to merge 1 commit intorconradharris:masterfrom
cardoe:drop-which
Open

change from using which to using hash#10
cardoe wants to merge 1 commit intorconradharris:masterfrom
cardoe:drop-which

Conversation

@cardoe
Copy link

@cardoe cardoe commented Jan 24, 2018

which was noisy on a box without pv which lead me to want to change it.
which is also not recommended to be used in scripts since return code
and output isn't necessarily guaranteed. Since we're on bash its safer
to use hash, which is a built-in which will speed all this up.

For more context: https://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script

which was noisy on a box without pv which lead me to want to change it.
which is also not recommended to be used in scripts since return code
and output isn't necessarily guaranteed. Since we're on bash its safer
to use hash, which is a built-in which will speed all this up.
@cardoe
Copy link
Author

cardoe commented Jan 24, 2018

Sup Brah

@cardoe
Copy link
Author

cardoe commented Jan 24, 2018

Sup Homie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments