On Nov 19, 2007 10:35 AM, Simon Marlow <[EMAIL PROTECTED]> 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.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to