The current implementation of the pipex project exhibits unexpected behavior.
In the test case :
time ./pipex infile "'sleep 3" "sleep 1" outfile
bash :
input : time < infile sleep 3 | sleep 1 > outfile
According to the expected behavior specified by Bash, the execution should take a total of 3 seconds, corresponding to the longest duration among the given commands, rather than the sum of both durations (4 seconds).
The current implementation of the pipex project exhibits unexpected behavior.
In the test case :
time ./pipex infile "'sleep 3" "sleep 1" outfile
bash :
input : time < infile sleep 3 | sleep 1 > outfile
According to the expected behavior specified by Bash, the execution should take a total of 3 seconds, corresponding to the longest duration among the given commands, rather than the sum of both durations (4 seconds).