Skip to content

BashScriptTests: shebang lines work on macos #15241

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

Merged
merged 1 commit into from
May 20, 2022

Conversation

bishabosha
Copy link
Member

@bishabosha bishabosha commented May 20, 2022

use usr/bin/env to run scala command (sometimes with -S)

update import jline.terminal.Terminal to import jsoup.Jsoup, this is because jline was already part of the classpath (added by the dist/bin/common script).

I hope that this is still testing the bug with globbing arguments on jvm on windows.

@bishabosha bishabosha requested a review from philwalk May 20, 2022 09:04
@bishabosha bishabosha changed the title shebang lines work on macos BashScriptTests: shebang lines work on macos May 20, 2022
Copy link
Contributor

@philwalk philwalk left a comment

Choose a reason for hiding this comment

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

The -S option requires a recent version of /usr/bin/env which is not universally available.
But it does solve the problem on macos, so perhaps it's not so hard to find workarounds for other environments. In order to build in Windows/cygwin, there is now a coreutils version 8.32-1 that should solve the problem.

WRT the import change, I think the only requirement is that it should fail to compile if the hashbang line fails to set an extended classpath, so that looks good.

@philwalk
Copy link
Contributor

LGTM

@bishabosha bishabosha merged commit 29b6427 into scala:main May 20, 2022
@bishabosha bishabosha deleted the fix-shebang-macos branch May 20, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants