changeset 12078:3710e1c3943e

test-yesno: work around sparc-dash here-document infelicity Without this change, the literal \177 byte in a here document would make dash 0.5.5.1-3 access uninitialized memory. * tests/test-yesno.sh: Don't put the \177 byte in the here document. Instead, use a marker, "@", and filter through tr to create the desired contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
author Jim Meyering <meyering@redhat.com>
date Sun, 27 Sep 2009 08:41:55 +0200
parents 72b0c1288a50
children 4af326308905
files ChangeLog tests/test-yesno.sh
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-09-27  Jim Meyering  <meyering@redhat.com>
+
+	test-yesno: work around sparc-dash here-document infelicity
+	Without this change, the literal \177 byte in a here document
+	would make dash 0.5.5.1-3 access uninitialized memory.
+	* tests/test-yesno.sh: Don't put the \177 byte in the here document.
+	Instead, use a marker, "@", and filter through tr to create the desired
+	contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
+
 2009-09-27  Bruno Haible  <bruno@clisp.org>
 
 	Disable untested support for new flavours of ACLs on AIX.
--- a/tests/test-yesno.sh
+++ b/tests/test-yesno.sh
@@ -19,9 +19,9 @@
 fi
 
 # Test with seekable stdin; the followon process must see remaining data.
-cat <<EOF > ${p}in.tmp
+tr @ '\177' <<EOF > ${p}in.tmp
 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn - entire line consumed
-yn - backspace does not change result
+y@n - backspace does not change result
 y
 does not match either yesexpr or noexpr
 n