Skip to content

refactor(compat): replace [[ with [ ] for Bash 3.0+#610

Merged
Chemaclass merged 1 commit intomainfrom
refactor/bash3-compat-replace-double-brackets
Mar 19, 2026
Merged

refactor(compat): replace [[ with [ ] for Bash 3.0+#610
Chemaclass merged 1 commit intomainfrom
refactor/bash3-compat-replace-double-brackets

Conversation

@Chemaclass
Copy link
Copy Markdown
Member

@Chemaclass Chemaclass commented Mar 16, 2026

Summary

  • Replace all ~410 [[ ]] test constructs across 28 source files with Bash 3.0+ compatible alternatives
  • [[ ]][ ] for simple tests, [ = ] for equality, grep -qE / sed for regex, case for glob matching
  • Compound conditions split from [[ A || B ]] to [ A ] || [ B ]

@github-actions
Copy link
Copy Markdown
Contributor

✅ Contributor Report

User: @Chemaclass
Status: Trusted contributor (whitelisted)

This user is on the trusted contributors list and was automatically approved.

@Chemaclass Chemaclass self-assigned this Mar 16, 2026
@Chemaclass Chemaclass force-pushed the refactor/bash3-compat-replace-double-brackets branch 6 times, most recently from f46a3b9 to 0989925 Compare March 17, 2026 10:13
Replace all [[ ]] test constructs with POSIX-compatible [ ] in src/.
Use grep -c instead of grep -q to work around Bash 3.0 set -e
pipeline bug. Save real grep path as $GREP to prevent spy
interference with framework internals.
@Chemaclass Chemaclass force-pushed the refactor/bash3-compat-replace-double-brackets branch from 00cc4c9 to e66ee9f Compare March 19, 2026 20:57
@Chemaclass Chemaclass added the enhancement New feature or request label Mar 19, 2026
@Chemaclass Chemaclass merged commit a2e1e14 into main Mar 19, 2026
26 checks passed
@Chemaclass Chemaclass deleted the refactor/bash3-compat-replace-double-brackets branch March 19, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants