Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Keep It Simple, Stupid
 
PerlMonks  

Re^5: [OT] rename(2) -- renaming file to itself produces no error.

by Coruscate (Sexton)
on Jan 08, 2004 at 00:35 UTC ( [id://319731]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: Re: •Re: [OT] rename(2) -- renaming file to itself produces no error.
in thread [OT] rename(2) -- renaming file to itself produces no error.

Now, why would you be wanting to depend on the system to have to do the thinking for you. For example, if you (or someone you know) have written code that winds up calling rename $old, $new;, where $old eq $new, then I would consider that a flaw in the thought process that went into designing the code, not the fault of the system's rename.

Replies are listed 'Best First'.
Re: Re^5: [OT] rename(2) -- renaming file to itself produces no error.
by dmitri (Priest) on Jan 08, 2004 at 08:33 UTC
    Yes. And I only found it by actually reading the code. This made wonder about rename(2) behavior.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://319731]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.