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

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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://18120]
help
Chatterbox?
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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?