resolution tests cd_bindir, cd_home, et b_env sauf une vraie erreur

This commit is contained in:
Hugo LAMY
2021-12-21 21:26:29 +01:00
parent 5c15813845
commit 0878b9b7e9
5 changed files with 200 additions and 108 deletions

View File

@@ -285,8 +285,8 @@ cd $(dirname $0)
# for env, special treatment
if [ "${in_file: -6}" == "env.sh" ]
then
bash_execution="$( echo "$bash_execution" | sort | grep -v -e "LINES=" -e "COLUMNS=" -e "_=" -e"LESSCLOSE=" -e "LESSOPEN=" )"
minishell_execution="$( echo "$minishell_execution" | sort | grep -v -e "LINES=" -e "COLUMNS=" -e "_=" -e"LESSCLOSE=" -e "LESSOPEN=" )"
bash_execution="$( echo "$bash_execution" | sort | grep -v -e "LINES=" -e "COLUMNS=" -e "_=" -e"LESSCLOSE=" -e "LESSOPEN=" -e "SHLVL=" )"
minishell_execution="$( echo "$minishell_execution" | sort | grep -v -e "LINES=" -e "COLUMNS=" -e "_=" -e"LESSCLOSE=" -e "LESSOPEN=" -e "SHLVL=" )"
fi
compare_output "$bash_execution" "$minishell_execution" "$commands"