t1491: fix Bash 3.2 bad substitution in config_get indirect expansion#4931
t1491: fix Bash 3.2 bad substitution in config_get indirect expansion#4931marcusquinn merged 1 commit intomainfrom
Conversation
Replace ${!env_var:-} with eval-based equivalent at 3 locations in
config-helper.sh. The ${!var:-default} syntax causes 'bad substitution'
on macOS /bin/bash 3.2.57, making config_get fail silently during
pulse-wrapper.sh startup.
Closes #4929
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Caution Review failedPull request was closed or merged during review WalkthroughFixed Bash 3.2 compatibility issue in config-helper.sh by replacing unsupported Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Duplicate PR detected: PR #4930 (branch PR #4931 (this PR) is more comprehensive — fixes 3 locations in Supervisor will check CI results next cycle and close the smaller PR if this one passes. |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Sun Mar 15 05:25:10 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
${!env_var:-}witheval "env_val=\${$env_var:-}"at 3 locations inconfig-helper.sh(lines 333, 527, 732)${!var:-default}indirect expansion syntax causes "bad substitution" on macOS/bin/bash3.2.57config_getto fail silently duringpulse-wrapper.shstartup, makingMAX_WORKERS_CAPandQUALITY_DEBT_CAP_PCTfall back to hardcoded defaults instead of reading fromsettings.jsonVerification
config_getwith env var override set → returns override valueconfig_getwith env var unset → falls through to JSONC config value${!env_var:-}instances in the fileCloses #4929
Summary by CodeRabbit
Release Notes