]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid syntax check failure with wrapped returns_
authorPádraig Brady <P@draigBrady.com>
Tue, 28 Mar 2017 04:21:21 +0000 (21:21 -0700)
committerPádraig Brady <P@draigBrady.com>
Tue, 28 Mar 2017 04:23:07 +0000 (21:23 -0700)
* cfg.mk (sc_prohibit_env_returns): Allow wrapped calls to
return_ of the form: `wrapper_ returns_ ...` which is needed
with the following commit.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index fde426465ee10f5b492f034e146c8eb2b5704ad7..b6f2c6f9b963abe155321e6c393b22e6a2b6fc0a 100644 (file)
--- 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)