Symbolic link for M2 fails on OS X
- Dominant language
- Macaulay2
- Stars
- 435
- Forks
- 297
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 11
Description
Macaulay2-1.9.2-x86_64-Darwin-15.6.0
If one creates a symbolic link to `M2`, it fails, because `"$0"` refers to the location of the symbolic link, not to the actual Macaulay2 installation.
On OS X one can use `readlink` to resolve symbolic links, so one can replace `dirname "$0"` by `"$M2PATH"` where `M2PATH=$(dirname $(readlink "$0"))`.
The attached replacement for `M2` (with .txt removed) works for me.
[M2.txt](https://github.com/Macaulay2/M2/files/1502403/M2.txt)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the M2 launcher and compare it with the attached replacement, focusing on how it determines the Macaulay2 installation when invoked through a symbolic link. Test the launcher on OS X both directly and through a symbolic link, and confirm that the linked command starts successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100