[Ecls-list] open :supersede and rename-file advise

Juan Jose Garcia-Ripoll jjgarcia at users.sourceforge.net
Mon Nov 26 21:56:04 UTC 2007


I checked SBCL, downloading it from Fink for my Mac OS X. It uses
Posix rename() and thus it does not complain when the destination
exists.

$ touch foo
$ touch faa
$ sbcl --eval '(progn (rename-file "foo" "faa") (quit))'
This is SBCL 1.0.5, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
$ ls -l f*
-rw-r--r--   1 jjgarcia  jjgarcia  0 Nov 26 22:53 faa

CLISP, on the other hand, does complain

$ touch foo
$ touch faa
$ clisp -x '(progn (rename-file "foo" "faa") (quit))'
[...]
*** - RENAME-FILE: file #P"/Users/jjgarcia/faa" already exists

Bye.

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list