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
Minor cleanups #16362
Minor cleanups #16362
Conversation
Different tests may use unexpectedly different versions of perl, depending on whether they hardcode the path to the perl executable or if they resolve the path from the environment. This fixes it so that the same perl is always used. CLA: trivial
config
Outdated
@@ -6,5 +6,5 @@ | |||
# in the file LICENSE in the source distribution or at | |||
# https://www.openssl.org/source/license.html | |||
|
|||
THERE=`dirname $0` | |||
THERE=$(dirname $0) |
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.
Interesting question whether this should be done, or the greater portabality of backtick should be preserved.
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.
Solaris 10 default shell might have an issue with `...` vs $(...) but I have no way of testing that.
util/find-unused-errs
Outdated
@@ -36,16 +36,16 @@ cd include/openssl || exit 1 | |||
grep "$PAT" * | grep -v ERR_FATAL_ERROR | awk '{print $3;}' | sort -u >$X1 | |||
cd ../.. | |||
|
|||
for F in `cat $X1` ; do | |||
for F in $(cat $X1) ; do |
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.
Same portability comment. I prefer to keep the backticks.
On the other hand, a case could be made to just remove this file.
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 agree with removal of files from the repository, if they are of no use anymore.
Congrats on the hashbang perl fixes! |
CLA: trivial
CLA: trivial
Please drop the shellcheck fix commit and I'll approve the PR. |
Rebased without the shellcheck fixes. |
I agree with CLA: trivial. |
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.
Agreed trivial.
This pull request is ready to merge |
Different tests may use unexpectedly different versions of perl, depending on whether they hardcode the path to the perl executable or if they resolve the path from the environment. This fixes it so that the same perl is always used. Fix some trailing whitespace and spelling mistakes as well. CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #16362)
Different tests may use unexpectedly different versions of perl, depending on whether they hardcode the path to the perl executable or if they resolve the path from the environment. This fixes it so that the same perl is always used. Fix some trailing whitespace and spelling mistakes as well. CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from #16362) (cherry picked from commit 473664a)
Merged to master and 3.0. |
Trivial spelling, whitespace, hashbang, and codestyle fixes.