Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Document cross-platform `FOO=bar cmd` in task commands and scripts

Open
#3,140 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@hyunbinseo is already working on this.

Since Oct 20, 2026.

  • #3161 by @Tarte12 — open

Assessment

This issue has not been assessed yet.

Description

documentation
Documentation is
  • Missing
Explain in Detail

vp run parses simple commands and && chains itself, including env prefixes like FOO=bar tool --flag. The prefix is applied to the spawned process, so per the source this works on Windows too, without cross-env. (Verified on Linux; Windows read from the code, not tested.)

Other commands (pipes, redirects, $VAR, etc.) fall back to /bin/sh -c, or cmd.exe /d /s /c on Windows, where FOO=bar tool fails.

Neither is documented. command only says "The string is interpreted by a shell", which suggests cmd.exe on Windows.

Source (vite-task 9ba4cc9):

Is this a supported feature? If so, it'd be a good reason to drop cross-env.

Your Suggestion for Changes

In Compound Commands or command, document:

  • Which commands are parsed by Vite Task, and which fall back to the system shell (and which shell on Windows).
  • FOO=bar tool works on every OS when parsed, and applies only to that command (FOO=1 a && b doesn't set FOO for b).
Relevant Page

https://github.com/voidzero-dev/vite-plus/blob/main/docs/config/run.md#command

Dominant language
Rust
Stars
6.3k
Forks
283
Avg merge
1d 16h
Merged PRs (30d)
214

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voidzero-dev/vite-plus

All issues in voidzero-dev/vite-plus

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.