in reply to Re^5: What script is this, and where is it? (Re: who am I?)
in thread who am I?

You are considering that datadir is a sibling to the symlink's directory. I, OTOH, consider that datadir will be most probably a sibling to the original script file's directory (because you can symlink it from anywhere, and considering otherwise would be a security risk *). We will have to agree on disagreeing.
* create symlink, create malicious configuration file side-by-side with symlink, ... profit!
Update: I stand corrected about the (meaning of) final destination of the datadir according to the answer by AZed below... You're welcome! And seems that we will have to agree in agreeing :-)
[]s, HTH, Massa (κς,πμ,πλ)

Replies are listed 'Best First'.
Re^7: What script is this, and where is it? (Re: who am I?)
by AZed (Monk) on Sep 25, 2008 at 01:36 UTC

    No, what you did with realpath is what I want, thanks. My examples showing the final destination relative to the symlinks when rel2abs was used were intended to illustrate errors, not desired behaviour.