tests/ed: Fix test comparation - sbase - suckless unix tools
HTML git clone git://git.suckless.org/sbase
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 1fbc996c41f9e82b2379bc10a9a0084b7d6cb347
DIR parent dc8a781c16c467c4540e001721725c6ff444d664
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Mon, 19 Jan 2026 11:51:24 +0100
tests/ed: Fix test comparation
The string equality operator in test is = not ==.
Diffstat:
M tests/0006-ed.sh | 2 +-
M tests/0009-ed.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/tests/0006-ed.sh b/tests/0006-ed.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-$EXEC ../ed -s /dev/null <<EOF | (read a && read b && test $a-$b == 1-2)
+$EXEC ../ed -s /dev/null <<EOF | (read a && read b && test $a-$b = 1-2)
0a
1
2
DIR diff --git a/tests/0009-ed.sh b/tests/0009-ed.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-$EXEC ../ed -s /dev/null <<EOF | (read a && test $a == 1)
+$EXEC ../ed -s /dev/null <<EOF | (read a && test $a = 1)
a
1
2