echo "Befor the test: The message is: $msg";
if [ -z "$msg" ]
then
echo "empty"
else
echo "not empty"
fi
if [[ $msg = "abc" ]]
then
echo "Test success for $msg"
#echo -ne "PRIVMSG #formationLinux :$nick, On dit pas 'Windows' ici, on dit 'Windaube' ;)\r\n" >&5
else
echo "Test fail for $msg"
fi
echo "After the test: The message is: $msg";
__='
Befor the test: The message is: xyz
not empty
Test fail for xyz
After the test: The message is: xyz
Befor the test: The message is: abc
not empty
Test fail for abc
After the test: The message is: abc
'