[PR #82] [MERGED] fix: make start.sh compatible with macOS bash 3.2 #4450

Closed
opened 2026-10-22 04:07:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/82
Author: @ailthrim
Created: 4/10/2026
Status: ✅ Merged
Merged: 4/10/2026
Merged by: @SpicyMarinara

Base: main ← Head: fix/bash-3-compat-start-script


📝 Commits (2)

  • 6363518 fix start.sh for bash 3.2
  • 21e7b83 Merge branch 'main' into fix/bash-3-compat-start-script

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 start.sh (+2 -1)

📄 Description

Summary

Make start.sh work on stock macOS, which still ships /bin/bash 3.2, by replacing Bash 4+ lowercase expansion with a portable normalization step.

Problem

start.sh currently uses:

${AUTO_OPEN_BROWSER_VALUE,,}

That syntax requires Bash 4+, but macOS still ships /bin/bash 3.2 by default.

On macOS, running:

./start.sh

can fail with:

bad substitution

before the launcher finishes starting the app.

Change

Replace the Bash 4-specific lowercase expansion with printf + tr before the case statement.

This preserves the existing behavior for values like false, FALSE, no, off, and 0, while remaining compatible with macOS's default Bash.

Validation

  • bash -n start.sh
  • Verified locally on macOS with /bin/bash 3.2.57
  • Confirmed AUTO_OPEN_BROWSER=false ./start.sh no longer fails with bad substitution and the server starts successfully

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/82 **Author:** [@ailthrim](https://github.com/ailthrim) **Created:** 4/10/2026 **Status:** ✅ Merged **Merged:** 4/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/bash-3-compat-start-script` --- ### 📝 Commits (2) - [`6363518`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6363518fd62fb679e720a4bb5b82298066c8b25a) fix start.sh for bash 3.2 - [`21e7b83`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21e7b83ef3c759e21be20a5abaadd8f1992835b4) Merge branch 'main' into fix/bash-3-compat-start-script ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `start.sh` (+2 -1) </details> ### 📄 Description ## Summary Make `start.sh` work on stock macOS, which still ships `/bin/bash` `3.2`, by replacing Bash 4+ lowercase expansion with a portable normalization step. ## Problem `start.sh` currently uses: ```sh ${AUTO_OPEN_BROWSER_VALUE,,} ``` That syntax requires Bash 4+, but macOS still ships `/bin/bash` `3.2` by default. On macOS, running: ```sh ./start.sh ``` can fail with: ```text bad substitution ``` before the launcher finishes starting the app. ## Change Replace the Bash 4-specific lowercase expansion with `printf` + `tr` before the `case` statement. This preserves the existing behavior for values like `false`, `FALSE`, `no`, `off`, and `0`, while remaining compatible with macOS's default Bash. ## Validation - `bash -n start.sh` - Verified locally on macOS with `/bin/bash` `3.2.57` - Confirmed `AUTO_OPEN_BROWSER=false ./start.sh` no longer fails with `bad substitution` and the server starts successfully --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4450
No description provided.