User Tools

Site Tools


apple

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
apple [2025/12/15 09:58] dblumeapple [2025/12/15 12:24] (current) – [brew upgrade issues] dblume
Line 243: Line 243:
 Symbolic links to the new bash from brew might not get updated. There's one in /usr/local/bin/bash to update manually. Symbolic links to the new bash from brew might not get updated. There's one in /usr/local/bin/bash to update manually.
  
 +First, check which shell you're in. And check which would be run. And check which are symlinks.
 +<code>
 +$ echo "$0"
 +/bin/bash
 +$ which bash
 +/opt/homebrew/bin/bash
 +$ which -a bash | xargs ls -l
 +-r-xr-xr-x  1 root    wheel  1310224 Oct 24 20:22 /bin/bash
 +lrwxr-xr-x@ 1 dblume  admin       29 Dec 15 08:25 /opt/homebrew/bin//bash -> ../Cellar/bash/5.3.9/bin/bash
 +lrwxr-xr-x@ 1 dblume  admin       29 Dec 15 08:25 /opt/homebrew/bin/bash -> ../Cellar/bash/5.3.9/bin/bash
 +lrwxr-xr-x@ 1 root    wheel       22 Dec 15 12:18 /usr/local/bin/bash -> /opt/homebrew/bin/bash
 +</code>
 +
 +Then, if there's a broken symlink, fix it.
 <code> <code>
 $ sudo rm /usr/local/bin/bash $ sudo rm /usr/local/bin/bash
-bash: __git_ps1: command not found +$ sudo ln -s /opt/homebrew/bin/bash /usr/local/bin/bash
-$ sudo ln -s /opt/homebrew/Cellar/bash/5.3.9/bin/bash /usr/local/bin/bash+
 </code> </code>
  
apple.1765821532.txt.gz · Last modified: 2025/12/15 09:58 by dblume