marimlem / minishell

0 stars 0 forks source link

bug: falsecmd | true cmd #40

Open marimlem opened 1 month ago

marimlem commented 1 month ago

minishell:$ cd gfdjsklfsj | echo hello cd: gfdjsklfsj: No such file or directory hello

=====

bash$ cd gfdjsklfsj | echo hello hello bash: cd: gfdjsklfsj: No such file or directory

=====

wrong way around

marimlem commented 1 month ago

... bash is inconsistent:

bash$ fdsfd | wc fdsfd: command not found 0 0 0


bash$ fdsfsd | echo a a fdsfsd: command not found


bash$ fdsfsd | cat file content fdsfsd: command not found