Re:Bash 4.4 released
by hibbelig on Friday September 16, 2016 @02:54PM
(#12516378)
I gave in and installed bash from Homebrew.
[ Parent
| on HN ]
This is what I do, and just so others know:
Realize that if your personal account's shell is pointed into the homebrew installation in /usr/local, and you implode homebrew or wipe /usr/local, you won't be able to start a terminal until your shell is changed or the binary exists. Solving this without Terminal.app being able to launch is a minor annoyance.
Re:Bash 4.4 released
by RJIb8RBYxzAMX9u on Saturday September 17, 2016 @12:34AM
(#12519136)
Right, so have Terminal run this instead:
#!/bin/sh
for shell in \
/opt/local/bin/bash \
/bin/bash \
/bin/sh
do
[ -x "$shell" ] && exec "$shell" -l
done
echo >&2 "ERROR: No valid shell found!"
read -r -s -n 1 -t 10 dummy
exit 1
Re:Bash 4.4 released
by QuercusMax on Sunday September 18, 2016 @07:57PM
(#12527855)
If you are able to run a script with #!/bin/sh, and /bin/sh becomes un-executable during the execution of your script, you're definitely having a bad time. :D
Re:Bash 4.4 released
by tambourine_man on Friday September 16, 2016 @06:35PM
(#12517874)
That is a very good point, thank you
Re:Bash 4.4 released
by theonemind on Friday September 16, 2016 @07:59PM
(#12518284)
The proof of this is trivial, and left to the reader.
Having a, "Holy shit, why didn't I think of that?" moment over here. Thanks for the tip!
So weird, I literally updated bash minutes before seeing this post about bash. I followed these instructions to enable it as default https://johndjameson.com/blog/updating-your-shell-with-homeb...