PowerShell: a backtick-newline inside a word gives two arguments instead of one
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 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:
aandb.
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 分鐘
- 30 天內合併 PR
- 46
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Aaronontheweb/ShellSyntaxTree 的其他 Issue
-
bug
難度 4/5 3-5 天 新手友好度 48/100
Aaronontheweb/ShellSyntaxTree#249 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
維護者通常 1 天內回覆
查看 Aaronontheweb/ShellSyntaxTree 的全部 Issue
相似的 Issue
-
Python: Bug: split_plaintext_paragraph / split_markdown_paragraph can return a chunk larger than max_tokens可能已有人在做 @xThreeh 今天認領。 未關閉python triage
難度 2/5 1-3 小時 新手友好度 75/100
microsoft/semantic-kernel#14566 ·
維護者通常 4 天內回覆
-
triage
難度 1/5 1 小時以內 新手友好度 82/100
rjmurillo/moq.analyzers#1384 ·
-
Variables passed to Compensated are not set on the routing slip可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
MassTransit/MassTransit#6249 ·
-
security
難度 2/5 1-3 小時 新手友好度 82/100
Sendspin/sendspin-dotnet#339 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
owasp-dep-scan/dosai#79 ·
維護者通常 1 天內回覆