From a9ab119464cf6faa7551ff0b090072adc660eb67 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 27 Sep 2009 08:41:55 +0200 Subject: [PATCH] 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 by Kurt Roeckx. --- ChangeLog | 9 +++++++++ tests/test-yesno.sh | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 12962ec042..f7ef1d65d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-09-27 Jim Meyering + + 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 by Kurt Roeckx. + 2009-09-27 Bruno Haible Disable untested support for new flavours of ACLs on AIX. diff --git a/tests/test-yesno.sh b/tests/test-yesno.sh index 52b94ef05b..b1a5b65b85 100755 --- a/tests/test-yesno.sh +++ b/tests/test-yesno.sh @@ -19,9 +19,9 @@ else fi # Test with seekable stdin; the followon process must see remaining data. -cat < ${p}in.tmp +tr @ '\177' < ${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 -- 2.30.2