mirror of
https://github.com/obra/superpowers.git
synced 2026-04-16 10:29:57 +00:00
Replace ${BASH_SOURCE[0]:-$0} with $0 in hooks/session-start and the
polyglot-hooks docs example. BASH_SOURCE uses bash array syntax that
causes 'Bad substitution' on systems where /bin/sh is dash (Ubuntu).
Since session-start is always executed (never sourced), $0 and
BASH_SOURCE give the same result. Tested on Linux (bash + dash) and
Windows (Git Bash via CMD and direct).
Based on #553, closes #553.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>