9.2.1 RC1 installer dropped version suffix in `/usr/local/bin` instances
I installed ghc-9.2.0.20210806-x86_64-apple-darwin.tar.xz
just now via ./configure && make install
.
It used to be that the binaries ended up in /usr/local/bin
with a version suffix, e.g.: ghc-9.0.1
, ghci-9.0.1
, ghc-pkg-9.0.1
etc. and then the suffix-free version was a symlink, like ghc -> ghc-9.0.1
. This allowed fast GHC version switching by changing the symlinks.
The 9.2.1 RC1 installed itself without prefixes. Moreover, it did something weird in the presence of my existing link ghci -> ghci-9.0.1
: It appended some lines to the realfile behind ghci
, so I ended up with this modification of ghci-9.0.1
:
#!/bin/sh
exec "/usr/local/bin/ghc-9.0.1" --interactive "$@"
#!/bin/sh
DIR=`dirname "$0"`
executable="$DIR/ghc"
exec $executable --interactive "$@"
Suggestion: stick to the previous installation logic: install to /usr/local/bin
with suffixes, set suffix-free symlinks.