Fix run-test for macOS standard tools #948
Merged
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.
BSD sed requires an argument with
-i
(backup file extension, disablingbackup file creation by providing an empty string; this is the default for GNU
sed when
-i
is specified without an argument).Further,
/bin/bash
shipping with macOS 14 doesn't like${*}
when theargument list is empty (at least in the context it is used in
run-tests
).The fix of having a distinct message for the case where
${*}
is empty alsoimproves the behavior for cases where a version of Bash is used that does not
complain about an empty
${*}
.This has been tested on macOS Sonoma 14.3, but probably also applies to earlier
versions.