Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

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

Ouverte
#244 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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

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

Langage dominant
C#
Étoiles
15
Forks
0
Merge moyen
9 h 8 min
PR mergées (30 j)
46

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Aaronontheweb/ShellSyntaxTree

Toutes les issues de Aaronontheweb/ShellSyntaxTree

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.