Repository navigation
docs: say which shell runs a command's exec step - #504
Merged
Merged
Conversation
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>
This was referenced Nov 10, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
docs/stack-file.mdcalled anexecstep a shell command line without naming the shell, and passing a variable differs between the two:VAR=x cmdworks only undersh,set "VAR=x" && cmdonly undercmd. The command section now names the shell per platform (cmd /d /s /con Windows,sh -con Linux and macOS, as forrunandbuild), shows the one-line form in each, and the portable way for a file used on both: a profile'senv(it already reaches everyexecstep) or a script that takes the address as an argument. Thedevstack-configskill gets the same note.Both lines were run in their shell, the
cmdform 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