in reply to Re: •Re: [OT] rename(2) -- renaming file to itself produces no error.
in thread [OT] rename(2) -- renaming file to itself produces no error.
Your text leads me to believe that you were attempting this operation merely for the side-effect of updating the mtime on the directory that the file is in. Is this true? If so, shame on you! :)
Otherwise it strikes me as a violation of the principle of least surprise that rename would produce an error when asked to do something that is easy enough to do by doing nothing (principle of least action there)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: •Re: [OT] rename(2) -- renaming file to itself produces no error.
by dmitri (Priest) on Jan 07, 2004 at 23:02 UTC | |
by Coruscate (Sexton) on Jan 08, 2004 at 05:35 UTC | |
by dmitri (Priest) on Jan 08, 2004 at 13:33 UTC |