Closed melobern closed 5 months ago
Statut : :ok:
SHELL:~/Documents$ mkdir cou
SHELL:~/Documents$ cd cou
SHELL:~/Documents/cou$ rmdir ../cou
SHELL:~/Documents/cou$ cd ../cou
bash: cd: ../cou: No such file or directory
SHELL:~/Documents/cou$ cd .
cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
SHELL:~/Documents/cou/.$ cd ..
SHELL:~/Documents$
Statut : :interrobang:
SHELL:~/sgoinfre/42_minishell.c/test/test$ cd ..
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
bash: cd: ..: Stale file handle
SHELL:~/sgoinfre/42_minishell.c/test/test$ cd ../..
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
bash: cd: ../..: Stale file handle
SHELL:~/sgoinfre/42_minishell.c/test/test$ cd ../../../
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
bash: cd: ../../../: Stale file handle
Statut : :ok:
Retoucher cd .
pour les dossiers supprimés / ayant perdu leur permission.
Statut : :ok:
Et en cas de suppression du dossier :
cd .
mbernard@z4r9p5:~/Documents/coucou$ cd . cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Statut : :ok:
CD bouge de nouveau mais segfault dont je devrais m'occuper.
Statut : :ok: Statut renvoyé si dossier supprimé : -1. Bash renvoie 0 comme code de sortie :warning:
Statut : :construction:
>>> Minishell>$ cd ../
tmp = /home/mbernard/Documents/
>>> Minishell>$ pwd
/home/mbernard/Documents/
>>> Minishell>$ cd ../
tmp = /home/mbernard/Documents/
>>> Minishell>$ pwd
/home/mbernard/Documents/
>>> Minishell>$ cd ../../
tmp = /home/mbernard/Documents/
minishell: cd: ../../: No such file or directory
Statut : :ok: CD fait du surplace.