Skip to content
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

use shell builtin command instead of which #11

Merged
merged 1 commit into from Apr 12, 2018

Conversation

jhoblitt
Copy link
Contributor

@jhoblitt jhoblitt commented Apr 6, 2018

No description provided.

@jhoblitt jhoblitt requested review from timj and srp3rd April 6, 2018 17:40
@@ -18,7 +18,7 @@ module add gcc/4.4.5

echo ${HERE}

which gcc
command -v gcc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just telling the user what compiler is in the path??? Maybe in that case type -a gcc would be more informative?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed the intent was to document the actual compiler used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but this seems clearer:

$ type -a clang
clang is /usr/bin/clang

than

$ command -v clang
/usr/bin/clang

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's reasonable.

@jhoblitt
Copy link
Contributor Author

I'm going to go ahead and merge this since it is trivial.

@jhoblitt jhoblitt merged commit bb097fe into master Apr 12, 2018
@ktlim ktlim deleted the tickets/DM-14026-which branch August 25, 2018 05:06
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.

None yet

2 participants