W/hen i run the following code snippet
#!/bin/bash
if [ "foo" = "foo" ];
then
echo "true"
else
echo "false"
fi
echo "end"
i get
sfm_write_buffer_test.sh: line 9: syntax error: unexpected end of file
this doesn't make any sense. echo statements works fine, but when the if statement is encountered it gives the above mentioned error.
trueandend. Same result with bash versions 2.01.1, 3.2.25, and 4.2.8.