[ Your node is unreadable. Please add a <p> tag at the start of every paragraph and add <c>...</c> tags around computer text. ]
andplatform/process/src/../../data/test.dat
platform/data/test.dat
are not necessarily equivalent. For example,
$ readlink -f /tmp/platform/process/src/../../data/test.dat /tmp/platform/process/data/test.dat
Notice that
platform/process/src/../../data/test.dat
is equivalent to
platform/process/data/test.dat
from that directory.
Tools like File::Spec that don't access the disk can't fold away ".." safely. You need Cwd's realpath
$ perl -MCwd=realpath -le'print realpath $ARGV[0]' \ /tmp/platform/process/src/../../data/test.dat /tmp/platform/process/data/test.dat
You can then make it relative again if that's what you desire.
(Yeah, me bad in the CB)
In reply to Re: Embedded relative paths
by ikegami
in thread Embedded relative paths
by ppti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |