*cough* ... look again.
/var/tmp/otherdir/symdir/../datadir' => '/var/tmp/otherdir/datadir'
I read it fine the first time.
/var/tmp/otherdir/symdir/../datadir
is equivalent to
/var/tmp/datadir
and not equivalent to
/var/tmp/otherdir/datadir
In "/var/tmp/otherdir/symdir/../datadir", the ".." is that of "mydir" which is a hard link to "/var/tmp".
Do like I did and test before contradicting someone.
$ cd /var/tmp $ mkdir mydir $ mkdir datadir $ mkdir otherdir $ touch mydir/in_mydir $ touch datadir/in_datadir $ touch otherdir/in_otherdir $ cd otherdir $ ln -s ../mydir symdir $ ls /var/tmp/otherdir/symdir/../datadir in_datadir $ perl -le'opendir $dh, $ARGV[0] or die; print for grep /in/, readdir +$dh' /var/tmp/otherdir/symdir/../datadir in_datadir
In reply to Re^4: What script is this, and where is it? (Re: who am I?)
by ikegami
in thread who am I?
by momo33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |