debug de heredoc
This commit is contained in:
27
tests/unit_tests/file.log
Normal file
27
tests/unit_tests/file.log
Normal file
@@ -0,0 +1,27 @@
|
||||
[01;32msimplonco@simplonco-Latitude-E6320[00m:[01;34m~/Nextcloud/informatique/42/minishell/minishell/tests/unit_tes
|
||||
sts[00m$ echo "hugo"
|
||||
hugo
|
||||
[01;32msimplonco@simplonco-Latitude-E6320[00m:[01;34m~/Nextcloud/informatique/42/minishell/minishell/tests/unit_tes
|
||||
sts[00m$ cat << EOF
|
||||
>
|
||||
file.log unitests.sh ut_expensions.sh ut_to_do_manually.sh
|
||||
logs/ ut_bonus.sh ut_heredocs.sh ut_vrac.sh
|
||||
minishell ut_builtins.sh ut_pipes.sh wip/
|
||||
tests_discord.md ut_exit_status.sh ut_redirections.sh
|
||||
>
|
||||
file.log unitests.sh ut_expensions.sh ut_to_do_manually.sh
|
||||
logs/ ut_bonus.sh ut_heredocs.sh ut_vrac.sh
|
||||
minishell ut_builtins.sh ut_pipes.sh wip/
|
||||
tests_discord.md ut_exit_status.sh ut_redirections.sh
|
||||
> hello you
|
||||
>
|
||||
file.log unitests.sh ut_expensions.sh ut_to_do_manually.sh
|
||||
logs/ ut_bonus.sh ut_heredocs.sh ut_vrac.sh
|
||||
minishell ut_builtins.sh ut_pipes.sh wip/
|
||||
tests_discord.md ut_exit_status.sh ut_redirections.sh
|
||||
>
|
||||
file.log unitests.sh ut_expensions.sh ut_to_do_manually.sh
|
||||
logs/ ut_bonus.sh ut_heredocs.sh ut_vrac.sh
|
||||
minishell ut_builtins.sh ut_pipes.sh wip/
|
||||
tests_discord.md ut_exit_status.sh ut_redirections.sh
|
||||
> EOF
|
||||
@@ -2,59 +2,9 @@
|
||||
[1;33m
|
||||
|
||||
|
||||
file: ut_vrac.sh
|
||||
file: ut_heredocs.sh
|
||||
[0m[1;37m
|
||||
|
||||
$
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
file_name_in_current_dir
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
/bin/echo bonjour
|
||||
-----------[0m
|
||||
bonjour
|
||||
[1;37m
|
||||
|
||||
not_cmd
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
echo bonjour > $test w/ t
|
||||
ls
|
||||
rm '$test'
|
||||
-----------[0m
|
||||
logs
|
||||
minishell
|
||||
tests_discord.md
|
||||
unitests.sh
|
||||
ut_bonus.sh
|
||||
ut_builtins.sh
|
||||
ut_exit_status.sh
|
||||
ut_expensions.sh
|
||||
ut_heredocs.sh
|
||||
ut_pipes.sh
|
||||
ut_redirections.sh
|
||||
ut_to_do_manually.sh
|
||||
ut_vrac.sh
|
||||
wip
|
||||
[1;37m
|
||||
|
||||
"exit retour a la ligne"
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
minishell
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
l^Ds
|
||||
COMMANDE=' echo "hugo"'
|
||||
-----------[0m
|
||||
|
||||
|
||||
@@ -2,60 +2,9 @@
|
||||
[1;33m
|
||||
|
||||
|
||||
file: ut_vrac.sh
|
||||
file: ut_heredocs.sh
|
||||
[0m[1;37m
|
||||
|
||||
$
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
file_name_in_current_dir
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
/bin/echo bonjour
|
||||
-----------[0m
|
||||
bonjour
|
||||
[1;37m
|
||||
|
||||
not_cmd
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
echo bonjour > $test w/ t
|
||||
ls
|
||||
rm '$test'
|
||||
-----------[0m
|
||||
logs
|
||||
minishell
|
||||
$test
|
||||
tests_discord.md
|
||||
unitests.sh
|
||||
ut_bonus.sh
|
||||
ut_builtins.sh
|
||||
ut_exit_status.sh
|
||||
ut_expensions.sh
|
||||
ut_heredocs.sh
|
||||
ut_pipes.sh
|
||||
ut_redirections.sh
|
||||
ut_to_do_manually.sh
|
||||
ut_vrac.sh
|
||||
wip
|
||||
[1;37m
|
||||
|
||||
"exit retour a la ligne"
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
minishell
|
||||
-----------[0m
|
||||
|
||||
[1;37m
|
||||
|
||||
l^Ds
|
||||
COMMANDE=' echo "hugo"'
|
||||
-----------[0m
|
||||
|
||||
|
||||
@@ -87,8 +87,8 @@
|
||||
echo ""
|
||||
}
|
||||
|
||||
# check for argments, like options or files list
|
||||
# if no file list, default file list is used
|
||||
# check for arguments, like options or files list
|
||||
# if no file in arguments, default file list is used
|
||||
list_files="$default_files"
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
COMMANDE=' echo "hugo"'
|
||||
# cat << EOF
|
||||
# hello you
|
||||
# EOF'
|
||||
COMMANDE=' echo "hugo"
|
||||
cat << EOF
|
||||
hello you
|
||||
EOF'
|
||||
|
||||
#echo "$COMMANDE" | bash -i &>file.log
|
||||
echo "$COMMANDE" | bash -i &>file.log
|
||||
#echo "$COMMANDE" | ./minishell &>file.log
|
||||
|
||||
#cat << EOF
|
||||
|
||||
Reference in New Issue
Block a user