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

fix(lib): the shared docs lookup scripts need Bash 4 but do not say so or probe for it

クローズ 初心者向け
#6,496 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, shell
領域
tooling

調査の方向性

lib/docs-raw.sh と lib/fetch-docs.sh を grep で調べ、${...,,} による大文字・小文字変換の展開を検出して、それらを移植性のある小文字化(tr '[:upper:]' '[:lower:]' や [[ =~ ]] による case folding のパターン)に置き換え、次にこれらのスクリプトの重複コピーをプラグイン内で再同期するところから始める。代替案としては、両プラグインの prerequisites.json に Bash 4+ を宣言し、/discovery:check スキルがバージョンを調べるようにしたうえで、マルチエージェントの README の "Bash 3.2 or later" という行を修正する。lib/docs-raw.test.sh と fetch-docs のテストを実行する(可能であれば Bash 3.2 の下で、または ,, の lint を通して)。スクリプトが合格するか、チェックスキルがバージョン要件を報告したら完了。

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

説明

needs-human needs-triage

No related issue: follow-up from the #6481 Codex review (part of #6020).

Summary

lib/docs-raw.sh (${BASH_REMATCH[1],,}) and lib/fetch-docs.sh (${line,,}, ${H_CTYPE,,} and others) use Bash 4 case conversion. Stock macOS Bash 3.2 exits with bad substitution, so on such a host every docs lookup fails: /discovery:read-docs errors, and the docs-fetcher raw reads in research-sweep and drift-audit fall back to WebFetch. Neither the discovery nor the multi-agent prerequisites.json declares Bash 4, and /discovery:check does not probe the version. The multi-agent README's "Bash 3.2 or later" line is about the role resolver, but a reader can take it to cover the new scripts.

Fix

Pick one: replace the ,, expansions with a portable lowercase (tr '[:upper:]' '[:lower:]' or a case-folding [[ =~ ]] pattern) in the canonical lib/ scripts and re-sync the copies; or declare Bash 4+ in both plugins' prerequisites and have the check skills report it.

Verification

  • Run lib/docs-raw.test.sh and the fetch-docs tests under Bash 3.2 (or with a ,, lint), or the check skill reports the version.

Related

  • #6481
  • #6020
主要言語
Shell
スター
22
フォーク
2
平均マージ
8時間 25分
マージ済み PR(30日)
944

環境構築

はじめの一歩

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

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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