A slightly easier solution might be to use ghc:
ghc -e 'Directory.getCurrentDirectory >>= putStrLn'

No extra program needed :)

Jason

On Mon, Oct 13, 2008 at 11:44 AM, David Roundy <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> This may be a solution to the trickiness of calling pwd in the tests.
> e.g. bash doesn't call /bin/pwd, and also pwd in bash on cygwin
> doesn't give valid path names.  It's a little silly, but I think it
> ought to be pretty darn portable.
>
> David
>
> Mon Oct 13 14:42:09 EDT 2008  David Roundy <[EMAIL PROTECTED]>
>  * slightly hokey approach to solving pwd problem.
>  I think this may help the Solaris/BSD test portability issue, and it's
>  also (I think) a slightly cleaner alternative to the portable_pwd
>  hack.
>
>
> _______________________________________________
> darcs-users mailing list
> [email protected]
> http://lists.osuosl.org/mailman/listinfo/darcs-users
>
>
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to