1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | 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"; |