Am 18.01.26 um 07:50 schrieb Paul Scott:
About 70% of the time a link command like the following works (after
removing the previous version's link).
sudo ln -s /usr/local/bin/lilypond
~/Lilypond/lilypond2.25.32/bin/lilypond /usr/local/bin/lilypond
Currently the result is lilypond -v executing the stable version
which is also installed.
I think I experience similar problems in a different context. Setting
the link to Perl3 instead of the previous version still executed the
old version.
I learned that the bash has a feature to remember where the commands
are found in a hash. You can clear the entire hash or remove a
specific entry. You should try
hash -d lilypond
after creating the link. Or clear the entire hash with
hash -r
see: https://man7.org/linux/man-pages/man1/hash.1p.html
Regards,