You do realize that "foo/../bar/bletch" cannot be reduced unless you're absolutely sure that "foo" is not a symlink, correct? Because if it is a symlink, then the ".." is relative to where "foo" points, not to where "foo" itself is located.
In reply to Re: Collapsing paths
by merlyn
in thread Collapsing paths
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |