Add a fact for an unquoted glob character in the authored word
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
Start by locating AnalyzedArgument.MayPathnameExpand and the argument analysis code that sets it; the issue does not name files or tests. Trace how authored words and quoting are represented, then add a separate fact for unquoted authored glob characters while preserving MayPathnameExpand semantics. Verify the examples in the issue, including quoted and expansion-only cases; done means the new fact distinguishes them without changing the existing fact.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
AnalyzedArgument.MayPathnameExpand (0.4.0-beta.19) is true for two different
cases:
- The authored word has an unquoted glob character (
*,?,[), for
example../netclaw/"${d}s"/*. - The authored word has an unquoted expansion whose value can contain a glob
character, for example$naftern=$(date).
A consumer cannot tell these cases apart. Netclaw needs the difference for an
output command (echo, printf):
- In case 1, the authored glob can list protected file names, so the consumer
applies its glob rule. - In case 2, the owner decision of netclaw-dev/netclaw#2349 keeps the operand
as data.
Today Netclaw cannot apply that decision when an assignment supplies the
value. n=$(date); echo $n gets one exact prompt, and an unattended run
denies it. An attempt to treat every such operand as data also made
d=key; echo ../netclaw/"${d}s"/* data, which is not safe.
Request
Add a general per-argument fact that is true only when the authored word has
an unquoted glob character. A suggested name is HasUnquotedGlobCharacter.
MayPathnameExpand keeps its meaning.
Examples
| Word | MayPathnameExpand |
New fact |
|---|---|---|
$n |
true | false |
/work/$f |
true | false |
"${d}s"/* |
true | true |
*.cs |
true | true |
"$n" |
false | false |
'*.cs' |
false | false |
A brace word stays opaque and needs no new value.
Consumer
netclaw-dev/netclaw#2349, review comment 4187346452.
- Vorherrschende Sprache
- C#
- Sterne
- 15
- Forks
- 0
- Ø Merge
- 9 Std. 54 Min.
- Gemergte PRs (30 T.)
- 40
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Aaronontheweb/ShellSyntaxTree
-
Command words: restore the beta.19 verb-slot ruleEvtl. vergeben @Aaronontheweb hat das vor 1 Tag übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Aaronontheweb/ShellSyntaxTree#240 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Aaronontheweb/ShellSyntaxTree#71 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Aaronontheweb/ShellSyntaxTree
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 1 Tag
-
:watch: Not Triaged aspnet-core/svc fundamentals/subsvc Source - Docs.ms
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
dotnet/AspNetCore.Docs#37785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Azure/azure-sdk-tools#17204 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Проблема с Dotnet RUOffenarea-tutorials needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
dotnet/website-feedback#1779 ·
-
[Bug] SwipeControl in Execute mode with more than one item replaces the whole UI with an error panelEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
microsoft/microsoft-ui-reactor#1344 ·
Maintainer antworten meist innerhalb von 1 Tag