Alicia-bites / minishell

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

echo test.c | cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e|cat -e|cat -e|cat -e #24

Closed Alicia-bites closed 2 years ago

Alicia-bites commented 2 years ago

echo test.c | cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e|cat -e|cat -e|cat -e

bash: test.c$$$$$$$$$$$

minishell: Error: Permission denied: cat

BarrierAntho commented 2 years ago

I do not have the same behavior as you

BASH:

➜  42_minishell git:(main) ✗ bash
abarrier@e1r4p1:~/42_minishell$ echo test.c | cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e|cat -e|cat -e|cat -e
test.c$$$$$$$$$$$
abarrier@e1r4p1:~/42_minishell$ 

MINISHELL

➜  42_minishell git:(main) ✗ ./minishell 
$: echo test.c | cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e| cat -e|cat -e|cat -e|cat -e
/usr/bin/cat: invalid option -- '|'
Try '/usr/bin/cat --help' for more information.
$: