Skip to content

--race appears to be non-functional #237

Open
@slavistan

Description

@slavistan

I'm running into trouble using run-p -r .... Using this package.json, executing npm x run-p -r sleep2 sleep4 (on a *nix host) should start two sleepers which should both terminate after two seconds. The expected output is wakey wakey as the 4-second sleeper should be terminated right after the first one finishes.

{
 ...
  "scripts": {
    "sleep2": "sleep 2 && echo wakey wakey",
    "sleep4": "sleep 4 && echo rise and shine"
  },
 ...
}

However, I have to wait the full 4 seconds for the run-p command to terminate and rise and shine is printed as well. According to my understanding of what run-p -r is supposed to do this is unexpected. Kindly correct me if I'm wrong.

This may be related to #139, although sleep certainly is not misbehaving :)

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