Re: rename-file
"Tim Bradshaw (as tfb at cley dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
rename(2) has had this semantics since it first existed, which is after 7th edition but by 4.2BSD. So I think this is reasonable semantics. Note that you need this semantics if you want various file-related things to have good behaviour: for instance if you rename a new version of a file to its documented name there should be no time when the name does exist, so you need the rename operation to be atomic. --tim > On 3 Feb 2026, at 08:03, Krupka Michal (as michal dot krupka at upol dot cz) <[email protected]> wrote: > > In LWM 8.1, when using rename-file to rename a file to the name of an existing file, the existing file is deleted. Would you consider this as a bug? > > Michal > > _______________________________________________ > Lisp Hug - the mailing list for LispWorks users > [email protected] > http://www.lispworks.com/support/lisp-hug.html _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html