PowerShell: a backtick-newline inside a word gives two arguments instead of one
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
- Área
- backend-api-design
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:
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).
- Lenguaje dominante
- C#
- Estrellas
- 15
- Forks
- 0
- Merge medio
- 9 h 8 min
- PR fusionados (30 d)
- 46
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Aaronontheweb/ShellSyntaxTree
-
Bash: an assignment in a loop body that reads the loop variable is not listed on later commandsAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Aaronontheweb/ShellSyntaxTree#249 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Aaronontheweb/ShellSyntaxTree
Issues similares
-
Bug pulumi/pulumi
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
activescott/lessmsi#306 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
HTML sitemap lists unpublished pagesPosiblemente ocupada @KrzysztofPajak la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
grandnode/grandnode2#883 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: `winapp ui <command> --on sandbox --help` starts sandbox setup instead of showing helpAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día