3 ms·
mac doesn't have realpath command.
by Hello71 6y ago
mac doesn't have realpath command.
- pstuart 6y agoor a modern bash built in (grrrr)
- gabagool 6y agoIn fairness, macOS has switched over to zsh as of 1 year ago in macOS Catalina: https://support.apple.com/en-us/HT208050 https://support.apple.com/en-us/HT208050. Catalina shipped with zsh 5.7 whereas 5.8 is now the latest.
- jen20 6y agoBig Sur ships with zsh 5.8 as /bin/zsh.
- fomine3 6y agoWhat about to use zsh to run bash script on mac? Possibly it's better than old bash.
- latexr 6y agoThat may cause errors or undesirable behaviour. As way of example, dealing with arrays: `read -a` in bash is `read -A` in zsh, and the former’s arrays are zero-based while the latter’s are one-based.
- pstuart 6y agoMy gripe is about being able to work on a bash script that needs to work "everywhere". Bash 4 was release over a decade ago, so it's a reasonable expectation that it will be present on most servers with a shell. Homebrew works around that, but their refusal over GPL taint for having the binary present still doesn't seem right.