Skip to content

docs: say which shell runs a command's exec step - #504

Merged
7schmiede merged 1 commit into
mainfrom
docs/exec-shell
Nov 10, 2026
Merged

7schmiede merged 1 commit into
mainfrom
docs/exec-shell

Conversation

@7schmiede

Copy link
Copy Markdown
Member

What and why

docs/stack-file.md called an exec step a shell command line without naming the shell, and passing a variable differs between the two: VAR=x cmd works only under sh, set "VAR=x" && cmd only under cmd. The command section now names the shell per platform (cmd /d /s /c on Windows, sh -c on Linux and macOS, as for run and build), shows the one-line form in each, and the portable way for a file used on both: a profile's env (it already reaches every exec step) or a script that takes the address as an argument. The devstack-config skill gets the same note.

Both lines were run in their shell, the cmd form with devstack's own quoting (cmd /d /s /c "<line>").

No review card: the behaviour is unchanged and only documented. A [steps.env] key, mentioned in the issue as an option, is not part of this change.

Closes #503

🤖 Generated with Claude Code

An exec step runs in the platform shell (cmd /d /s /c on Windows, sh -c
elsewhere), and passing a variable is not portable between the two.
Name both, show the one-line form in each, and the portable way (a
profile's env, or a script argument). The devstack-config skill says
the same.

Closes #503

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 75f12ca into main Nov 10, 2026
@7schmiede
7schmiede deleted the docs/exec-shell branch November 10, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant