Ubuntu Pastebin

Paste from blackbird at Tue, 23 Aug 2016 10:55:46 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
	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
'
Download as text