bradbell / cmpad

Compare Algorithmic Differentaiton Packages
1 stars 1 forks source link

bash v3 syntax for bash in MacOS #11

Closed utke1 closed 1 week ago

utke1 commented 1 week ago

the -v is a bash v4 feature but the current MacOS default bash still is v3

bradbell commented 1 week ago

How about taking out the set -e -u at the top of this script ?

bradbell commented 1 week ago

My the way, I think that MacOS is sticking with base v3 to get people to migrate to zsh. You can load a newer bash using homebrew, but perhaps it is better to make the script work on older versions of bash.