PowerShell: a backtick-newline inside a word gives two arguments instead of one
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 57/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp, powershell
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- C#
- Star
- 15
- Fork
- 0
- Merge trung bình
- 9 giờ 8 phút
- Pull request đã merge (30 ngày)
- 46
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Aaronontheweb/ShellSyntaxTree
-
Bash: an assignment in a loop body that reads the loop variable is not listed on later commandsĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Aaronontheweb/ShellSyntaxTree#249 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Aaronontheweb/ShellSyntaxTree
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/fluentui-blazor#5410 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug pulumi/pulumi
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
activescott/lessmsi#306 ·
-
Docs MSBuild
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-dotnet#5691 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày