2008/4/22 Carlos Pantelides <[EMAIL PROTECTED]>:

> usa pwd, pero el del bash, no /bin/pwd, con -LP
>

O, sin que haga falta cambiar el cwd:

if [ "`realpath \"$DIR1\"`" != "`realpath \"$DIR\"`" ]; then
    echo distintos
else
    echo iguales
fi

Si no usas bash, cambia los backticks por $()
_______________________________________________
Lista de correo Programacion.
[email protected]
http://listas.fi.uba.ar/mailman/listinfo/programacion

Responder a