Alicia-bites / minishell

This project is about creating a simple shell.
1 stars 0 forks source link

cd ~/ | echo $? #27

Closed Alicia-bites closed 2 years ago

BarrierAntho commented 2 years ago

The home tilde is not interpreted for our minishell. The subject is specifying only relative or absolute path. Then Error message appears

➜  42_minishell git:(main) ✗ ./minishell 
$: cd ~/ | echo $?
0
Error:
file: srcs/built-in/do_cd/do_cd_change_dir.c
message: No such file or directory
Error:
file: srcs/pipe/pipe_cmd.c
message: command not found
$: 

The question is more why there are two error message instead of one