Replace echo -e and echo -n with printf for macOS compatibility#2759
Merged
Daniel-Fan merged 2 commits intoIBM:scripts-devfrom Mar 4, 2026
Merged
Replace echo -e and echo -n with printf for macOS compatibility#2759Daniel-Fan merged 2 commits intoIBM:scripts-devfrom
Daniel-Fan merged 2 commits intoIBM:scripts-devfrom
Conversation
Signed-off-by: Sophie Shen <syc_libra@live.cn>
Signed-off-by: Sophie Shen <syc_libra@live.cn>
Daniel-Fan
approved these changes
Mar 4, 2026
Contributor
Daniel-Fan
left a comment
There was a problem hiding this comment.
Thank you @YCShen1010
The test result looks positive!
➜ ✗ ./checker_tool/check_cpfs.sh --help
This is the main function
OPERATOR_NS is not set, use default namespace: ibm-common-services
You can set OPERATOR_NS by using the following command 'export OPERATOR_NS=<namespace>'
Usage: check_cpfs.sh [OPTIONS]...
Accepted cli arguments are:
[--help|-h], prints this help.
[--all|-a], all cases will be ran.
[--groups|-g <groups>], the case groups should be like --groups='group1,group2'.
[--groups|-g -l], list the current supported groups.
[--ignore-groups|-ng <groups>], skip the cases groups, like -ng group1,group2.
[--cases|-c <cases>], the cases should be like --cases='case1,case2'.
[--cases|-c -l], list the current supported cases.
[--ignore-cases|-nc <cases>], skip the cases groups, like -nc case1,case2.
[--output-file|-f <string>], name to use for the output file. Default name is 'results.json'
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.
What this PR does / why we need it:
Some versions of macOS zsh do not recognize
echo -eorecho -nflags, causing literal-eor-nto be printed in the output instead of the intended behavior.Replaces all occurrences across the repo with their POSIX-portable printf equivalents:
Which issue(s) this PR fixes:
Fixes # https://github.ibm.com/IBMPrivateCloud/roadmap/issues/68532