rnittaBadCommit / minishell_main

0 stars 1 forks source link

コマンド実行毎に標準入出力のfdを更新するように修正 #47

Closed sasakiyudai closed 3 years ago

sasakiyudai commented 3 years ago

4 $ echo '100+1' > a.txt ; bc < a.txt | wc -c > result.txt ; cat result.txt ; rm result.txt a.txt 4 $

5 $ echo test | cat test

6 $ echo test > a.txt | cat $ $ cat a.txt test $

7 $ echo test > a.txt $ $ cat a.txt test $ cat < a.txt test $

7 $ echo test > a.txt $ $ cat a.txt test $

ぜんぶok!