Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

RE: RE: RE: RE: Odd file rename

by t0mas (Priest)
on Jun 14, 2000 at 19:24 UTC ( #18120=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://18120]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2022-05-19 16:49 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (72 votes). Check out past polls.