resolu erreur suppression fichiers entre bash et minishell

This commit is contained in:
hugogogo
2021-12-15 21:01:26 +01:00
parent 8b6af1ec47
commit cc53beabcf
3 changed files with 100 additions and 0 deletions

View File

@@ -144,7 +144,9 @@ cd $(dirname $0)
{
# execute commands in bash, and logs results
bash_execution=$( echo "$@" | bash 2>/dev/null )
delete_files
minishell_execution=$( echo "$@" | ./minishell 2>/dev/null )
delete_files
#compare output
if [ "$bash_execution" = "$minishell_execution" ]