]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/autotest.at (BSx641-newline in command):
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Nov 2006 01:14:34 +0000 (01:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Nov 2006 01:14:34 +0000 (01:14 +0000)
(BS-BS-newline in command, BSx640-newline in command):
(Newline-CODE-BS-newline in command):
(Single-quote-BS-newline in command):
(Single-quote-newline-BS-newline in command):
Use printf '%s\n' instead of echo, for portability to hosts
where echo interprets backslashes.  This will break on hosts
that lack printf, but for now let's assume all such hosts
are dead (if not, we should get reports of test failures).

ChangeLog
tests/autotest.at

index ba202016336d594d51ed405e1a9680d394825612..a8a084e36f1e90b15d36df8fea90762082ddb1e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-11-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * tests/autotest.at (BSx641-newline in command):
+       (BS-BS-newline in command, BSx640-newline in command):
+       (Newline-CODE-BS-newline in command):
+       (Single-quote-BS-newline in command):
+       (Single-quote-newline-BS-newline in command):
+       Use printf '%s\n' instead of echo, for portability to hosts
+       where echo interprets backslashes.  This will break on hosts
+       that lack printf, but for now let's assume all such hosts
+       are dead (if not, we should get reports of test failures).
+
 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        'echo' has some portability problems, when given a first argument
index ee61c159ce330b8da552af2a06b03956c1de784e..b632f064049aecb3991e126ba6d0e43376789455 100644 (file)
@@ -191,12 +191,12 @@ echo GNU], 0, [GNU
 ], [])])
 
 AT_CHECK_AT_TEST([BSx641-newline in command],
-  [AT_CHECK([echo Auto"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
 "conf], 0, [Auto\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\conf
 ], [])])
 
 AT_CHECK_AT_TEST([BS-BS-newline in command],
-  [AT_CHECK([echo Auto"\\
+  [AT_CHECK([printf '%s\n' Auto"\\
 "conf], 0, [Auto\
 conf
 ], [])])
@@ -204,27 +204,27 @@ conf
 # A `^BS-BS-newline in command' test will run a command named `\'.  No, thanks.
 
 AT_CHECK_AT_TEST([BSx640-newline in command],
-  [AT_CHECK([echo Auto"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
 conf
 ], [])])
 
 # This command has both escaped and unescaped newlines.
 AT_CHECK_AT_TEST([Newline-CODE-BS-newline in command],
-  [AT_CHECK([echo Auto'
+  [AT_CHECK([printf '%s\n' Auto'
 'co\
 nf], 0, [Auto
 conf
 ], [])])
 
 AT_CHECK_AT_TEST([Single-quote-BS-newline in command],
-  [AT_CHECK([echo Auto'\
+  [AT_CHECK([printf '%s\n' Auto'\
 'conf], 0, [Auto\
 conf
 ], [])])
 
 AT_CHECK_AT_TEST([Single-quote-newline-BS-newline in command],
-  [AT_CHECK([echo Auto'
+  [AT_CHECK([printf '%s\n' Auto'
 \
 'conf], 0, [Auto
 \