in reply to WARNING t0mas wrote BAD CODE
in thread Odd file rename

Please correct me merlyn but sholdn't the -d take care of that?

/brother t0mas

Replies are listed 'Best First'.
RE: RE: RE: RE: RE: Odd file rename
by merlyn (Sage) on Jun 14, 2000 at 20:50 UTC
    No. -d on a symlink that points to a directory returns true for both the symlink and the directory. Hence, you could end up anywhere, including your own parent.

    -- Randal L. Schwartz, Perl hacker