Skip to content

docs(stack-file): say which shell runs a command's exec step #503

Closed

Description

@fen89

docs/stack-file.md describes exec as a "Shell command line" but never says which shell. That decides how environment variables reach the step, and the syntax is not portable:

  • VAR=x npx playwright test — works with sh -c, fails under cmd
  • set "VAR=x" && npx playwright test — works under cmd, fails with sh -c

A command that has to hand a service's address to a test runner (E2E_URL={service.web.url}, so a lane tests its own ports and not the main tree's) needs one of the two, and the file gives no way to tell which. The answer is in the code — crates/devstack-proc/src/lib.rs: "Command line, run by the platform shell (cmd /d /s /c, sh -c)" — but it took reading the crates to find it.

Suggestion: name the shell per platform in the command section of docs/stack-file.md (around the steps description), ideally with the one-line example of passing a variable in both forms. A [steps.env] key would remove the need entirely, but the doc line alone would have been enough here.

Found while adding a command that runs a Playwright suite against the tree's own ports, devstack 0.42.0 on Windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions