Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#244 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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: 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).

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Aaronontheweb/ShellSyntaxTree

Tất cả issue của Aaronontheweb/ShellSyntaxTree

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.