PowerShell: a backtick-newline inside a word gives two arguments instead of one
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 57/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- csharp, powershell
- Domaine
- backend-api-design
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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).
- Langage dominant
- C#
- Étoiles
- 15
- Forks
- 0
- Merge moyen
- 9 h 8 min
- PR mergées (30 j)
- 46
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Aaronontheweb/ShellSyntaxTree
-
Bash: an assignment in a loop body that reads the loop variable is not listed on later commandsOuvertebug
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Aaronontheweb/ShellSyntaxTree#249 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Aaronontheweb/ShellSyntaxTree
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
stryker-mutator/stryker-net#3892 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
MobiFlight/MobiFlight-Connector#3419 ·
Les mainteneurs répondent en général sous 1 jour
-
`Source` with an `avares://` URI and a `#fragment` throws instead of scrolling to the anchorOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Kryptos-FR/MarkView.Avalonia#105 ·
Les mainteneurs répondent en général sous 1 jour
-
[辞書]Ouverte提案 辞書
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
microsoft/fluentui-blazor#5410 ·
Les mainteneurs répondent en général sous 1 jour