Alfonso Acosta wrote: > On Nov 19, 2007 10:51 AM, Alfonso Acosta <[EMAIL PROTECTED]> wrote: >> Well, you can always combine the first argument of the script ($0) for >> absolute paths and combine it with with pwd for relative ones. > > I meant _use_ the first argument of the script ($0) for absolute paths > and combine it with pwd for relative ones.
#!/bin/sh reldir=`dirname $0` topdir=`(cd $reldir; pwd)` should do. Christian _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users