As noted elsewhere, I need to rethink installation of the package manager.
There are two main issues:
1. I shouldn't (try to) drop the package manager into the same directory as workspaces [i.e. )lib 0]. The package manager should have its own home directory.
2. I need to find a way to handle the case where workspace directories are located relative to APL's working directory.
Based upon my understanding of the issues, I propose the following solution. I'd like to get feedback on this before I commit the solution to code.
I propose to locate the package manager and packages in their own directory. This directory will be configurable at installation time and easily reconfigurable later.
You'd still use a symlink to reference the package manager's boot file; I can arrange that the installer lets you create multiple copies of this link, if needed. (Alternatively, you could copy or move an existing symlink using shell commands.)
I think that this change would address most concerns with running APL in different working directories without having configured (in ~/.gnu-apl/preferences) an absolute path to your workspaces directory.