Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: John Klein <jk271828@ya...> - 2003-11-09 04:36:16
This might be an obvious question, but I haven't found an answer
in the docs or the source code. How does one change the default
working directory in sbcl?
In cmucl, it is (setf (ext:default-directory) "/new/directory")
but in sbcl, default-directory does not exist.
A solution using
(sb-alien:define-alien-routine ("chdir" unix-chdir) sb-alien:int
changes the directory as seen by sb-unix:posix-getcwd but
not as seen by the rest of sbcl - eg, not by (directory ".")
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
From: Milan Zamazal <pdm@za...> - 2003-11-11 08:30:35
BTW, is there a way to set a default directory for a program run through
RUN-PROGRAM? Or do I have to alien-call `chdir' before calling
Free software is about freedom, not about free beer. If you care only about
the latter, you'll end up with no freedom and no free beer.
From: Milan Zamazal <pdm@za...> - 2003-11-11 11:14:45
>>>>> "DB" == Daniel Barlow <dan@...> writes:
DB> Milan Zamazal <pdm@...> writes:
>> BTW, is there a way to set a default directory for a program run
>> through RUN-PROGRAM? Or do I have to alien-call `chdir' before
>> calling RUN-PROGRAM?
DB> No, there isn't, and I wonder if we should chdir to the
DB> (pathname-directory) of *default-pathname-defaults* as part of
DB> the run-program call.
How about just adding a :DIRECTORY argument to RUN-PROGRAM?