Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#244 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp, powershell

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
15
Forks
0
Merge medio
9 h 8 min
PR fusionados (30 d)
46

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Aaronontheweb/ShellSyntaxTree

Todos los issues de Aaronontheweb/ShellSyntaxTree

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.