Summary: | gentoo-prefix project bootstrap-bash.sh has bashisms and invalid code | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Chris Slycord <cslycord> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | diff -u bootstrap-bash_orig.sh bootstrap-bash.sh |
Description
Chris Slycord
2020-03-25 07:27:49 UTC
Created attachment 625438 [details, diff]
diff -u bootstrap-bash_orig.sh bootstrap-bash.sh
unified diff of a working and posix-compliant bootstrap-bash.sh
Moved the checks for commands into a function using "command -v" and moved the check for files being the same in the cygwin case into its own function for readability.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=39f5044b32d30c5296fc103cd573737c084e3787 commit 39f5044b32d30c5296fc103cd573737c084e3787 Author: Chris Slycord <cslycord@gmail.com> AuthorDate: 2020-03-30 17:10:56 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-03-30 17:10:56 +0000 scripts/bootstrap-bash: fix bashisms, bug #714634 Closes: https://bugs.gentoo.org/714634 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-bash.sh | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) applied your patch, thanks |