Integrated: JDK-8285987: executing shell scripts without #! fails on Alpine linux

Matthias Baesken mbaesken at openjdk.java.net
Thu May 5 12:49:19 UTC 2022


On Wed, 4 May 2022 12:04:47 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> A couple a tests like java/lang/ProcessBuilder/Basic.java#id0.Basic_id0 and jdk/jshell/ExternalEditorTest.java.ExternalEditorTest try to start small shell scripts without #! at the first line of the script. This fails with error=8, Exec format error when running on Alpine 3.15 .
> Looks like this is a known issue on musl / Alpine, see also
> https://www.openwall.com/lists/musl/2018/03/09/2
> and
> https://github.com/scala-steward-org/scala-steward/issues/1374
> (we see it on Alpine 3.15).

This pull request has now been integrated.

Changeset: 9d2f591e
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/9d2f591e6a15dc155a8cc3b18a54456d5f9a3aa7
Stats:     35 lines in 3 files changed: 17 ins; 0 del; 18 mod

8285987: executing shell scripts without #! fails on Alpine linux

Reviewed-by: mdoerr, goetz

-------------

PR: https://git.openjdk.java.net/jdk/pull/8535


More information about the core-libs-dev mailing list