[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/3] tests: beware of portability of readline
From: |
Akim Demaille |
Subject: |
[PATCH 1/3] tests: beware of portability of readline |
Date: |
Wed, 29 Apr 2020 08:01:05 +0200 |
* examples/test: here.
---
examples/test | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/test b/examples/test
index b4be2dc1..a1242e3a 100755
--- a/examples/test
+++ b/examples/test
@@ -92,7 +92,8 @@ run ()
$echo "$1" |
sed -e 's/Reducing stack by rule .* (line .*):/Reducing stack by rule XX
(line XXX):/g' |
if $strip_prompt; then
- sed -e '/^> /d'
+ # An extra EOL added in bistromathic's main. Keep that empty line.
+ sed -e '/^> ./d;s/^> $//g'
else
cat
fi >exp
--
2.26.2