Skip to content

Unexpected Execution Time Discrepancy in Test Case "./pipex infile 'sleep 3' 'sleep 1' outfile" #1

@Memli-Sheremeti

Description

@Memli-Sheremeti

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions