GHC 6.8.1 on Mac OS X 10.5 (Leopard)

Christian Maeder Christian.Maeder at
Wed Nov 21 11:00:36 EST 2007

Simon Marlow wrote:
> Christian Maeder wrote:
>> #!/bin/sh
>> reldir=`dirname $0`
>> topdir=`(cd $reldir; pwd)`
> There's no guarantee that $0 holds anything reasonable: you can set $0
> to whatever you like when calling exec*().

The above script simply does not work, if it is linked to from another
place. (I don't know if that's related to exec, but I see the problem now.)


More information about the Glasgow-haskell-users mailing list