`devbox run -- cmd ARG`: a newline in ARG becomes a literal \n, and a quoted $ is expanded
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start at the implementation of devbox run and trace how arguments after -- are passed to the command; the report suggests they may be joined and parsed as a shell string. Look for existing tests covering devbox run argument forwarding and run them first. Done means newline and dollar sign arguments, including quoted values, arrive unchanged.
索引モデルが issue の本文から書いたものです。
説明
Devbox 0.18.4, Linux (Ubuntu 24.04).
devbox run -- cmd ARG... does not pass the arguments through unchanged. It looks like the arguments are joined into one shell string and parsed again.
1. A newline in an argument becomes a literal \n.
devbox run -q -- node -e 'console.log(JSON.stringify(process.argv.slice(1)))' -- $'a\nb' "c d"
Expected: ["a\nb","c d"] (a real newline in the first argument)
Actual: ["a\\nb","c d"] (a backslash and an n)
Spaces survive, newlines do not. So a multi-line node -e or bash -c script does not parse under devbox run.
2. A $ in an argument is expanded, also when the caller quoted it.
devbox run -q -- printf '%s\n' 'a$HOME'
# expected: a$HOME
# actual: a/home/<user>
devbox run -q -- bash -c 'X=inner; echo "[$X]"'
# expected: [inner]
# actual: []
Workaround: write the script to a file and pass its path.
Expected behaviour: the arguments after -- reach the command exactly as the caller's shell gave them (as with exec "$@").
- 主要言語
- Go
- スター
- 12.4k
- フォーク
- 358
- 平均マージ
- 17時間 12分
- マージ済み PR(30日)
- 31
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jetify-com/devbox のほかの issue
-
feature triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jetify-com/devbox#3038 ·
メンテナーはふだん 1 日以内に返信
-
pulumi is outdatedオープンbug p4 package processed triage unrelated
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
jetify-com/devbox#2898 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
p4 processed unrelated
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
jetify-com/devbox#2750 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Storydenオープンp4 package processed triage unrelated
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jetify-com/devbox#2685 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
looks easy p4 package processed triage
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
jetify-com/devbox#2656 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
jetify-com/devbox の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
stacklok/toolhive-catalog#1890 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
integrations/terraform-provider-github#3719 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Wayfinder sample agents don't reach the Data Plane on the quickstart pack対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンType/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
thunder-id/thunderid#6402 ·
メンテナーはふだん 1 日以内に返信
-
GoStratumEngineオープンaddition
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
awesome-selfhosted/awesome-selfhosted-data#3290 ·
メンテナーはふだん 1 日以内に返信
-
log4j2.xml from orchestration.extraConfiguration is rendered twice, and the install fails when orchestration.log4j2 is also set対応中かも @irisfield が今日担当しました。 オープンplatform/local
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
camunda/camunda-platform-helm#7854 ·
メンテナーはふだん 1 日以内に返信