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

From: Thomas Chust (chust at web.de)
Date: Mon Mar 2 12:07:32 EST 2009

2009-03-02 Jesus Boadas <jboadas at gmail.com>:
> 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.
> [...]


if you run it through LaunchServices, ie. from the Finder, Dock or
using the open command line utility, then that's the normal behaviour
for any MacOS X application, I think.


When C++ is your hammer, every problem looks like your thumb.

Posted on the users mailing list.