Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipes: fix order #50

Closed
Tracked by #42
flomero opened this issue May 15, 2024 · 1 comment
Closed
Tracked by #42

pipes: fix order #50

flomero opened this issue May 15, 2024 · 1 comment
Labels
bug Something isn't working MISSING (Flo has to do it)

Comments

@flomero
Copy link
Collaborator

flomero commented May 15, 2024

Current

stuck in first cat, CTRL+C continues with the other stuff

πŸ‘‹ minishell ➜ cat | cat | ls
DEBUG: New node created: Leaf:          arg[0]: cat 
DEBUG: New node created: Node:          |
DEBUG: New node created: Leaf:          arg[0]: cat 
DEBUG: New node created: Node:          |
DEBUG: New node created: Leaf:          arg[0]: ls 
DEBUG: Executing command: cat
DEBUG: /bin/cat

^C
πŸ‘‹ minishell ➜ DEBUG: Executing command: cat
DEBUG: Executing command: ls
DEBUG: /bin/cat
DEBUG: /bin/ls
Makefile    b           b c d       ho baum     includes    libft       minishell   obj         srcs        subject.pdf test

Expected

  1. outputs ls output
  2. enter twice and it leaves
bash-3.2$ cat | cat | ls
Makefile    b           b c d       ho baum     includes    libft       minishell   obj         srcs        subject.pdf test


bash-3.2$ 
@flomero flomero added bug Something isn't working MISSING (Flo has to do it) labels May 15, 2024
@flomero flomero mentioned this issue May 15, 2024
2 tasks
@flomero
Copy link
Collaborator Author

flomero commented May 21, 2024

fixed in #56

@flomero flomero closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MISSING (Flo has to do it)
Projects
None yet
Development

No branches or pull requests

1 participant