[Openmcl-devel] [PATCH] scripts/ccl64

Martin Kühl martin.kuehl at gmail.com
Tue Apr 14 10:32:53 PDT 2009


On Tue, Apr 14, 2009 at 18:59, Ben Hyde <bhyde at pobox.com> wrote:
> This made me happier...
>  if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
> +    cd `dirname $0`
> +    cd ..
> +    probe "`pwd`"
> +fi

Wouldn’t
    probe "$(dirname $(dirname $0))"
be preferable? I hate scripts that change PWD under my feet…

Cheers,
Martin



More information about the Openmcl-devel mailing list