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
-
难度 2/5 1-3 小时 新手友好度 62/100
PCL-Community/PCL-CE#3658 ·
维护者通常 1 天内回复
-
Deploy & Patch-issues opprettes ikke: create-pnd-issues.yml har feilet hver uke siden 2025-09-08未关闭
难度 2/5 1-3 小时 新手友好度 62/100
Altinn/altinn-auth#4359 ·
维护者通常 1 天内回复
-
アプリ: チャット 優先: 中 提案
难度 2/5 1-3 小时 新手友好度 70/100
yksr-melt/Meltype#243 · 1 条评论 ·
维护者通常 1 天内回复
-
type/automation type/tech-debt
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
no-stack-trace
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复