-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.sh
33 lines (30 loc) · 1.26 KB
/
tester.sh
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
30
31
32
33
# **************************************************************************** #
# #
# ::: :::::::: #
# tester.sh :+: :+: :+: #
# +:+ +:+ +:+ #
# By: Dugonzal <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/05/21 07:25:54 by Dugonzal #+# #+# #
# Updated: 2023/05/26 22:19:02 by Dugonzal ### ########.fr #
# #
# **************************************************************************** #
#!/bin/bash
test() {
minishell=$(echo $@ | ./minishell)
bash=$(echo $@ | bash)
if [ "$test1" = "$test2" ]; then
echo "[OK]"
echo "minishell : $minishell"
echo "bash : $bash"
else
echo "KO"
fi
}
test "echo hello"
test "echo hello''world"
test "echo hello'world'"
test "echo hello'world'"
test "echo hello'world'hello"
test "echo hello'world'hello'world'"
test 'echo hello"world"'