Conversation
…35) The mise tasks are bash 4+ scripts (mapfile, associative arrays, ${var,,}) and macOS ships bash 3.2 at /bin/bash. Nothing installed a newer one, and the Brewfile could not help: deps runs after setup and link have already died on it. bootstrap.sh now installs bash alongside git, stow, fish and mise in its brew branch. The ordering already works: brew shellenv is evaluated before mise run setup and puts the brew prefix ahead of /bin, mise passes that PATH through to file tasks, so #!/usr/bin/env bash resolves to the new one. The Brewfile lists bash too so deps keeps it current, lib/plan.sh fails fast with a clear message instead of mapfile: command not found, and the README says so. Closes #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The mise tasks are bash scripts that use
mapfile, associative arrays and${var,,}, all bash 4 features. macOS has shipped bash 3.2 since 2007 (thelast GPLv2 release), and nothing in the repo installed a newer one, so on a
fresh Mac the first task died with
mapfile: command not found. It wentunnoticed because the one Mac already had a Homebrew bash from some earlier
install.
The obvious place for it is the Brewfile, but
depsruns aftersetupandlinkhave already needed bash, so it would arrive too late. It is installedby
bootstrap.shalongside git, stow, fish and mise instead, and the Brewfilelists it too so
depskeeps it current.plan.shalso checks the bashversion up front, so a missing Homebrew bash now says "these tasks need bash
4+" and how to fix it, rather than failing on an unrelated-looking builtin.
Closes #35