alias test {
remove test.txt
write -i1 test.txt hi
write -i1 test.txt bye
echo -a $lines(test.txt) == 2
echo -a $read(test.txt,n,1) == hi
echo -a $read(test.txt,n,2) == bye
}
Both in version 6.21 and version 6.32 the output is this one
Code:
-
* Removed 'mircdir\test.txt'
-
2 == 2
hi == hi
bye == bye