This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Configure: avoid here-doc in eval-ed snippet
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 21 Jan 2020 18:04:32 +0000 (18:04 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Tue, 21 Jan 2020 18:04:32 +0000 (18:04 +0000)
Some versions of bash, ksh and dash warn or error, complaining about
unterminated here-docs, while some versions complain about syntax
errors in unrelated parts of the script.

This partially reverts commit 52635202f174c9387aa422c4aa32d12f754d8a33.

Configure

index f6f8254..acea1c1 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -5788,10 +5788,7 @@ compile='
 mc_file=$1;
 shift;
 case "$usedevel" in $define|true|[yY]*) if $test ! -f "${mc_file}.c"; then
-cat >&4 <<EOM
-Internal Configure script bug - compiler test file ${mc_file}.c is missing.
-Please report this to https://github.com/Perl/perl5/issues
-EOM
+echo "Internal Configure script bug - compiler test file ${mc_file}.c is missing. Please report this to https://github.com/Perl/perl5/issues" >&4;
 exit 1;
 fi;
 esac;