autoenv
autoenv copied to clipboard
Syntax Error on MacOS (via homebrew)
Platform
- MacOS 15.6.1 (Sequoia)
- bash
- autoenv installation method: homebrew
- autoenv version: 0.4.0
Describe the bug
Cannot source 'activate.sh':
$ source /opt/homebrew/opt/autoenv/activate.sh
-bash: /opt/homebrew/opt/autoenv/activate.sh: line 299: syntax error near unexpected token `;;'
-bash: /opt/homebrew/opt/autoenv/activate.sh: line 299: `
I can fix this manually, by downgrading to before the commit that last touched that line fixes the problem. I did this:
brew install autoenv
git clone https://github.com/hyperupcall/autoenv.git && cd autoenv
git checkout 08c96e6841d4c8370bed21c86d0602a77609a113
cp activate.sh /opt/homebrew/opt/autoenv/
Confirming that this is still a problem and that the manual downgrade works like a charm.
The downgrade helped me, too.