commit: 97c7b4f967e2b43984ad948ad0d77e84a1a55016 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Wed Nov 11 00:55:26 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Wed Nov 11 00:55:26 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=97c7b4f9
checkbashisms: also flag echo -e/-n usage Since we don't require echo support the -e or -n flag, and we know some shells do not support them, make sure we flag them in our scripts too. bin/install-qa-check.d/60openrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-qa-check.d/60openrc b/bin/install-qa-check.d/60openrc index 9b7fc6d..1e56b2f 100644 --- a/bin/install-qa-check.d/60openrc +++ b/bin/install-qa-check.d/60openrc @@ -24,7 +24,7 @@ openrc_check() { for i in "${ED}${d}"/* ; do [[ -e ${i} ]] || continue [[ -L ${i} ]] && continue - f=$("${checkbashisms}" -f "${i}" 2>&1) + f=$("${checkbashisms}" -n -f "${i}" 2>&1) [[ $? != 0 && -n ${f} ]] || continue eqawarn "QA Notice: shell script appears to use non-POSIX feature(s):" while read -r ;