in reply to Re: How does rename() work on read-only files?
in thread How does rename() work on read-only files?

... you can rename the file

I agree, but I wonder why the foo's inode is not preserved after the rename() step, even though the documentation says so.

Replies are listed 'Best First'.
Re^3: How does rename() work on read-only files?
by ikegami (Patriarch) on Dec 11, 2018 at 18:14 UTC

    You are mistaken. rename doesn't change what file (inode) the name points to.

    (I've updated my earlier comment to show the inode numbers.)

      So do you agree with hippo here that the new inode numbers for alpha/foo* in the linked doc are in error?

      Was it the original behaviour of perl in the past, when the author wrote it? The author did a good job explaining it so it's hard to believe it's a mistake.

      Oh, I almost forget it. Thank you ikegami for your answers.