Repository navigation
Conversation
Where 'bash -ue' is used, the replacement reads '/usr/bin/env -S bash -ue' and requires coreutils 8.30 or newer (ubuntu:19.04 or newer) Signed-off-by: Renato Alves <[email protected]>
Member
Author
|
As explained in the description, that's not quite true and there are many cases where this may fail, NixOS being only one. Others include systems where As for a symlink, you seem to be assuming that users will have control over The proposed PR addresses all these. One could make a case for |
TomYipOracle
added a commit
to TomYipOracle/ncov2019-artic-nf
that referenced
this pull request
Nov 29, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces all hardcoded
/bin/bashpaths to/usr/bin/env bash.When additional arguments are given to bash (e.g.
bash -ue),/usr/bin/env -S bash -ueis used instead.The
env -Sfunctionality requires coreutils 8.30 or newer. This or a newer version of coreutils is present since Ubuntu 19.04, CentOS 8 and many others.This PR also addresses issues with containers and Linux OSes where
/bin/bashdoesn't exist or wherebashis installed in a different path (e.g. NixOS).The PR should also fix partially or entirely the issues #73 #1598 and #1732
Additional potential issues remain in the files:
Where
/bin/bashis still hardcoded to work with different images.In fact, some of that code is likely non-functional as, for instance, the latest
busyboxdocker image no longer includes/bin/bash.