GHC 6.8.1 on Mac OS X 10.5 (Leopard)

Alfonso Acosta alfonso.acosta at gmail.com
Mon Nov 19 04:51:59 EST 2007


On Nov 19, 2007 10:35 AM, Simon Marlow <simonmarhaskell at gmail.com> wrote:
> pwd gives you the directory that the script was invoked *from*, not the
> directory in which the script resides.  This is a common problem on Unix:
> there's no general way to find out the location of a binary.

Well, you can always combine the first argument of the script ($0) for
absolute paths and combine it with with pwd for relative ones.


More information about the Glasgow-haskell-users mailing list