[hackers] [sbase] tests/ed: Fix test comparation || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 19 Jan 2026 11:52:37 +0100 (CET)

commit 1fbc996c41f9e82b2379bc10a9a0084b7d6cb347
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
AuthorDate: Mon Jan 19 11:51:24 2026 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
CommitDate: Mon Jan 19 11:51:24 2026 +0100

    tests/ed: Fix test comparation
    
    The string equality operator in test is = not ==.

diff --git a/tests/0006-ed.sh b/tests/0006-ed.sh
index bda5d64..b847608 100755
--- a/tests/0006-ed.sh
+++ b/tests/0006-ed.sh
_AT_@ -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
diff --git a/tests/0009-ed.sh b/tests/0009-ed.sh
index e10426c..815bdb3 100755
--- a/tests/0009-ed.sh
+++ b/tests/0009-ed.sh
_AT_@ -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
Received on Mon Jan 19 2026 - 11:52:37 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 19 2026 - 12:00:34 CET