faboussard / 42_minishell

1 stars 0 forks source link

CD : va dans le repertoire du dessus, puis celui encore plus au-dessus #45

Closed melobern closed 5 months ago

melobern commented 5 months ago
>>>  Minishell>$ cd ..
/home/mbernard/Documents
The current char is : /
The current char is : h
The current char is : o
The current char is : m
The current char is : e
The current char is : /
The current char is : m
The current char is : b
The current char is : e
The current char is : r
The current char is : n
The current char is : a
The current char is : r
The current char is : d
The current char is : /
current path was /home/mbernard/Documents with a len of 15
going into /home/mbernard
env->value is /home/mbernard
m->current_path is /home/mbernard
env->value is /home
m->current_path is /home

Going to /home/mbernard et oupsie, cd a glissé dans le repertoire du dessus hi hi !

melobern commented 5 months ago

Parfois, la vie ne tient qu'a un else. Ou a un return.