Shell files in `/bin` can be made executable
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Tue Nov 23 15:04:39 UTC 2021
On 2021-11-23 15:59, Japris Pogrammer wrote:
> Currently [1] shell scripts in /bin directory seem to be missing x
> modifier. I guess that it should be added to them in order to improve their
> usage experience a bit.
> Is this assumption right?
> If yes, then I am ready to propose a simple fix for this [2].
Traditionally, we have not allowed the execute bit in OpenJDK
repositories, out of security concerns.
I'm not really sure how much that actually is a valid argument (everyone
is just doing "bash ./bin/whatever.sh") and it complicates building
somewhat (the standard "./configure" do not work, but "bash configure"
is needed instead).
I have not seen this practice written down anywhere, but since it's
actually been in effect for so long, it will require a discussion to
change it.
To clarify; I am in favor of dropping that limitation, and I'd like to
see some good arguments for why we should keep it.
/Magnus
More information about the jdk-dev
mailing list