sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 1fbc996c41f9e82b2379bc10a9a0084b7d6cb347
parent dc8a781c16c467c4540e001721725c6ff444d664
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:
Mtests/0006-ed.sh | 2+-
Mtests/0009-ed.sh | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

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 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