This repository was archived by the owner on Feb 18, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm fine with the
$@
change but can you explain this one more? When will we have a setup that maintainers don't havebash
yet havesh
?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.
I'm inclined to say this PR will hurt more than help: http://stackoverflow.com/questions/10376206/what-is-the-preferred-bash-shebang
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.
@twolfson @dawsonbotsford
One is guarantied that
/bin/sh
is on all systems. And since the code is POSIX compatible - and the file is named release.sh - then there is no need to loadbash
as a faster / more lightweight shell likedash
could be symlinked from/bin/sh
. Also note that FreeBSD doesn't ship withbash
by defaultThe discussion linked above is concerned about whether or not to use
/usr/bin/env sh
or simply/bin/sh
which makes sense when talking aboutbash
as a user wish to use a newer version of said. But whom are not allowed to change/bin
.But since - as stated before - this code is POSIX compatible the discussion is not as relevant. One could however still argue that they have symlinked
/usr/bin/env sh
todash
but the system's version isbash
in which case the performance boost will be lost. But using/usr/bin/env
one extra process needs to be started which also cost something.Anyway, the main idea behind changing the shebang was that a
.sh
file should be POSIX compatible and if a shebang is present it should be for thesh
executable. I think you can compare it to saving a png file with the.jpg
suffix. One could also rename the file torelease.bash
orrelease
.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.
Why are we talking about all systems? This script is only for maintainers and we either use Linux Mint (myself) or OS X (mlmorg). I'm pretty sure this is bike shedding and unrelated to the main problem this PR was trying to solve. Please remove this line of code.