Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add a fact for an unquoted glob character in the authored word

オープン
#235 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Problem

AnalyzedArgument.MayPathnameExpand (0.4.0-beta.19) is true for two different
cases:

  1. The authored word has an unquoted glob character (*, ?, [), for
    example ../netclaw/"${d}s"/*.
  2. The authored word has an unquoted expansion whose value can contain a glob
    character, for example $n after n=$(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.

主要言語
C#
スター
15
フォーク
0
平均マージ
9時間 8分
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Aaronontheweb/ShellSyntaxTree のほかの issue

Aaronontheweb/ShellSyntaxTree の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。