[plt-scheme] behavior of (current-directory) OSX

From: Jesus Boadas (jboadas at gmail.com)
Date: Mon Mar 2 10:56:54 EST 2009

I created this little program

(format (path->string (current-directory)))

Compiled it and create stand-alone executable.
Then under command line it works well but If I create a Mac .app always
return "/" no matters where I run it.

2009/3/2 Noel Welsh <noelwelsh at gmail.com>

> A bit more detail would be useful to diagnose the problem. What I
> expect is happening is that you're starting DrScheme from the Dock on
> OS X so the current directory is set to /.  If you started it from the
> command line current-directory should be the current directory of the
> shell that starts it (I don't have my OS X machine here to verify). If
> the issue is something else a bit more detail would be helpful.
> N.
> On Mon, Mar 2, 2009 at 1:51 PM, Jesus Boadas <jboadas at gmail.com> wrote:
> > Greetz
> >
> > Im trying to use (current-directory) in OSX and always get #<path:/> as a
> > result, in Windows it works well, maybe Im missing something ?
> >
> >
> > Best regards
> >
> > --
> > Jesus Boadas
> > jboadas at gmail.com

Jesus Boadas
jboadas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20090302/35938385/attachment.html>

Posted on the users mailing list.