pwd, cd ができなくなる
oshiro17 opened this issue · comments
大城希乃樺 commented
% ./minishell
ms > mkdir tmp
ms > cd tmp
ms > rm -rf ../tmp/
ms > pwd
ms > cd
./minishell: runtime error
大城希乃樺 commented
ms > mkdir tmp
ms > cd tmp/
ms > pwd
/Users/panti/Downloads/minishell/tmp
ms > chmod 000 ../tmp/
ms > pwd
大城希乃樺 commented
bash-3.2$ mkdir temp
bash-3.2$ cd temp
bash-3.2$ rm -rf ../temp
bash-3.2$ unset PWD
bash-3.2$ echo $PWD
bash-3.2$ pwd
/Users/panti/Desktop/temp
bash-3.2$