sbase/tests/0009-ed.sh
Roberto E. Vargas Caballero 1fbc996c41 tests/ed: Fix test comparation
The string equality operator in test is = not ==.
2026-01-19 11:51:24 +01:00

21 lines
116 B
Bash
Executable File

#!/bin/sh
$EXEC ../ed -s /dev/null <<EOF | (read a && test $a = 1)
a
1
2
3
4
5
6
7
8
9
.
1s/^//
ka
9s/^//
'a
w
EOF