diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2014-12-30 20:59:22 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2014-12-30 20:59:22 +0100 |
commit | 36812809ab75a07e5e8387986fc35a805d80fa36 (patch) | |
tree | de858f71a52d9be1247f5e855dec010a53c6d013 /t/self-check-shell-no-trail-bslash.sh | |
parent | adc17cc491e2b6b1d5e0e966c6f03fed3573b980 (diff) | |
parent | 4cb0327adc1f085f4b9bacd0e6e1c2d7a88b92f6 (diff) | |
download | automake-36812809ab75a07e5e8387986fc35a805d80fa36.tar.gz |
Merge branch 'minor'
* minor:
docs: "make distcheck" implementation details are not to be abused
NEWS: improve and adjust in light of the oncoming 1.15 release
shell-no-trail-bslash: improve diagnostic in case of failure
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/self-check-shell-no-trail-bslash.sh')
-rw-r--r-- | t/self-check-shell-no-trail-bslash.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/self-check-shell-no-trail-bslash.sh b/t/self-check-shell-no-trail-bslash.sh index 19198898b..8b7afa5c5 100644 --- a/t/self-check-shell-no-trail-bslash.sh +++ b/t/self-check-shell-no-trail-bslash.sh @@ -58,11 +58,17 @@ for sfx in \ ; do for pfx in "" "echo bad" ": a${nl}# multine${nl}: text"; do cmd=${pfx}${sfx} - printf '%s\n' "$cmd" > bad.sh + printf '%s' "$cmd" > bad.sh for args in '-c "$cmd"' './bad.sh'; do eval "\$SHELL $args 2>stderr && { cat stderr >&2; exit 1; }; :" cat stderr >&2 $FGREP "recipe/script ends with backslash character" stderr + cmd="$cmd" $PERL -w -e ' + undef $/; + $_ = <>; + index($_, $ENV{cmd}) >= 0 or exit 1; + ' <stderr + $FGREP "$cmd" stderr done done done |