aboutsummaryrefslogtreecommitdiffstats
path: root/main/termrec/Fix-a-bashism-in-the-testsuite.patch
blob: c72204b483d6a8a4d5462a2c65e40029260b4697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 0875aeaf4d1f4c1c76e2a9c5213a5072a072fb25 Mon Sep 17 00:00:00 2001
From: Adam Borowski <kilobyte@angband.pl>
Date: Tue, 1 Sep 2015 09:11:29 +0200
Subject: [PATCH] Fix a bashism in the testsuite.

---
 tests/testsuite.at | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/testsuite.at b/tests/testsuite.at
index de246f3..7b8f486 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -35,7 +35,8 @@ AT_SETUP([vt100 sequences])
 for x in "$top_srcdir/tests/vt.in/"*
   do
     unescape <"$x" >stdin
-    cat "${x/vt.in/vt.out}" >expout
+    y="$(echo "$x"|sed 's/vt\.in/vt.out/')"
+    cat "$y" >expout
     AT_CHECK([vt -d <stdin],,[expout])
   done
 AT_CLEANUP
-- 
2.14.1