jmolloy/pedigree

mounts are confusing

Closed this issue · 2 comments

If you 'cd /dev', you end up on 'dev»/', and suddenly can't access any of the files on 'root»/' without a prefix. Because PATH is usually '/applications', not 'root»/applications', it suddenly becomes very difficult to run any programs.

Ideally getcwd() should also include the mount (eg, 'root»/') to make this more obvious.

Fixing the first part of the problem (PATH, library lookup, etc) is not too complicated (I have a basic fix in my working directory).

However, bash is proving to be much more complicated. Our absolute working directory will always be '»/...', but this does not have a leading '/'.

Patched bash now understands Pedigree absolute paths, and the tour command provides an introduction to the mounts.

We also have cdhelp to help with this too, when a user first cd's to another mount.