marimlem / minishell

0 stars 0 forks source link

question: unset envp/SHLVL before minishell #32

Closed marimlem closed 1 month ago

marimlem commented 3 months ago

what if everything is unset before starting minishell?

what if SHLVL is unset before starting minishell?

should minishell quit immediately upon realizing envp is empty or SHLVL is empty?

marimlem commented 3 months ago

env -i ./minishell

marimlem commented 3 months ago

with complete env unset (using unset $(env | cut -d= -f1)) minishell should continue to be able to use cd .. and cd path

cd, pwd should not be based on env variables