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

PowerShell: a backtick-newline inside a word gives two arguments instead of one

オープン
#244 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, powershell

調査の方向性

Start by locating the PowerShell word-parsing logic and related tests; the issue does not name specific files or tests. Reproduce the input with a backtick followed by a newline inside a word and compare SST's parsed argument with pwsh. Done means SST returns the exact single argument value, or Unknown if it cannot determine that value exactly.

索引モデルが issue の本文から書いたものです。

説明

Problem

In PowerShell, a backtick followed by a newline inside a word is an escape. It does not end the word.

  • Input: Remove-Item a + backtick + newline + b
  • pwsh passes one argument: "a<newline>b".
  • SST reports two arguments: a and b.

Impact

  • The value of the word is wrong.
  • The fault does not hide a command. "$+backtick+newline+(...)" stays literal in both pwsh and SST, and an unquoted $+backtick+newline+(...) fails closed.
  • A consumer that checks paths can check the wrong path.

Expected

  • SST gives one argument with the exact value that pwsh passes.
  • If SST cannot give that value exactly, the word value is Unknown (fail closed).

Found during the work on the Bash line-continuation fix (https://github.com/Aaronontheweb/ShellSyntaxTree/pull/243).

主要言語
C#
スター
15
フォーク
0
平均マージ
9時間 8分
マージ済み PR(30日)
46

環境構築

はじめの一歩

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

Aaronontheweb/ShellSyntaxTree のほかの issue

Aaronontheweb/ShellSyntaxTree の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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