Skip to content

Additional fixes for jruby.sh#8656

Merged
headius merged 7 commits intojruby:masterfrom
headius:more_sh_fixes
Feb 25, 2025
Merged

Additional fixes for jruby.sh#8656
headius merged 7 commits intojruby:masterfrom
headius:more_sh_fixes

Conversation

@headius
Copy link
Member

@headius headius commented Feb 25, 2025

Aditional patches for set -u and POSIX shell compatibility.

@headius headius added this to the JRuby 9.4.13.0 milestone Feb 25, 2025
@headius headius changed the title Additional fixes for set -u Additional fixes for jruby.sh Feb 25, 2025
These are read only in eval via a call to preextend below, so we
disable the unused var warning.
The dash shell is a variable of ash that adds a few nice-to-have
features like 'local' variables. We specify that shellcheck should
use dash for verification, since the alternative to local variables
is unpleasant.
@headius
Copy link
Member Author

headius commented Feb 25, 2025

I fixed the $CP issue that @enebo reported, disabled some unused variable warnings for eval'ed vars, and cleaned up other shellcheck configs with extra doco. Requested review from @mrnoname1000.

Copy link
Contributor

@mrnoname1000 mrnoname1000 left a comment

Choose a reason for hiding this comment

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

Mostly stylistic comments

@headius headius merged commit 479a50a into jruby:master Feb 25, 2025
96 checks passed
@headius headius deleted the more_sh_fixes branch February 25, 2025 22:48
Copy link
Contributor

@mrnoname1000 mrnoname1000 left a comment

Choose a reason for hiding this comment

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

Looks good!

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.

2 participants