You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zsh glob error: 'no matches found' for .pending-* pattern #313
When running gstack skills in zsh, getting this error:
(eval):22: no matches found: /Users/liaosiyi/.gstack/analytics/.pending-*
Root Cause
The Preamble code in every skill contains:
``bash
for _PF in ~/.gstack/analytics/.pending-*; do ...
When no `.pending-*` files exist (which is the common case), zsh errors with "no matches found" because it doesn't handle unmatched glob patterns like bash does.
## Environment
- Shell: zsh
- gstack version: latest (installed from source)
- macOS (likely affects all platforms with zsh)
## Suggested Fix
In `scripts/gen-skill-docs.ts` line 165, change:
``typescript
for _PF in ~/.gstack/analytics/.pending-*; do ...
To:
``typescript
// zsh compatibility: nullglob for missing .pending-* files
(for _PF in ~/.gstack/analytics/.pending-* 2>/dev/null; do ...) 2>/dev/null || true
This wraps the for loop in a subshell with error suppression, making it compatible with both bash and zsh.
Activity
fix(preamble): make .pending-* glob pattern zsh-compatible (fixes gar…
fix(preamble): make .pending-* glob pattern zsh-compatible (fixes gar…
fix(preamble): make .pending-* glob pattern zsh-compatible (fixes #313)
fix: zsh glob compatibility in skill preamble (v0.11.7.0) (#386)
fix: zsh glob compatibility in skill preamble (v0.11.7.0) (#386)
fix: zsh glob compatibility in skill preamble (v0.11.7.0) (garrytan#386)
fix(preamble): make .pending-* glob pattern zsh-compatible (fixes gar…
fix: zsh glob compatibility in skill preamble (v0.11.7.0) (garrytan#386)