Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#3,140 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hyunbinseo がすでに取り組んでいます。

2026年10月20日 から。

  • #3161 @Tarte12 による — オープン

評価

この issue はまだ評価されていません。

説明

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

主要言語
Rust
スター
6.3k
フォーク
283
平均マージ
1日 14時間
マージ済み PR(30日)
230

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。