illinois-ceesd / emirge

Environment for MirgeCom
MIT License
4 stars 3 forks source link

replace 'which' with 'command -v' #123

Closed matthiasdiener closed 3 years ago

inducer commented 3 years ago

For my education, why is command -v preferable to which? I noticed that command is a built-in in bash, while which is not. (both are built-in commands in zsh).

matthiasdiener commented 3 years ago

For my education, why is command -v preferable to which? I noticed that command is a built-in in bash, while which is not. (both are built-in commands in zsh).

command is specified by POSIX, but which is not I think. This eliminates the shellcheck CI error.