summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2017-03-28 04:21:21 (GMT)
committerPádraig Brady <P@draigBrady.com>2017-03-28 04:23:07 (GMT)
commita5239412c1a76f389ace92add34a3e539db255c4 (patch)
treee30d279756b407b4f90f0e534f51dbb8f0d656c6
parent73c8452e83d70300a4d627d004be1be4b3ff1019 (diff)
downloadcoreutils-a5239412c1a76f389ace92add34a3e539db255c4.zip
coreutils-a5239412c1a76f389ace92add34a3e539db255c4.tar.gz
coreutils-a5239412c1a76f389ace92add34a3e539db255c4.tar.bz2
maint: avoid syntax check failure with wrapped returns_
* cfg.mk (sc_prohibit_env_returns): Allow wrapped calls to return_ of the form: `wrapper_ returns_ ...` which is needed with the following commit.
-rw-r--r--cfg.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index fde4264..b6f2c6f 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -514,6 +514,7 @@ sc_prohibit_and_fail_1:
# that was seen to fail on FreeBSD /bin/sh at least
sc_prohibit_env_returns:
@prohibit='=[^ ]* returns_ ' \
+ exclude='_ returns_ ' \
halt='Passing env vars to returns_ is non portable' \
in_vc_files='^tests/' \
$(_sc_search_regexp)