Hello all

>From tm_common.sh:

# Takes out uneeded slashes. Repeated and final directory slashes:
# /some//path///somewhere/ -> /some/path/somewhere
function fix_dir_slashes
{
    dirname "$1/file" | sed -E 's/\/+/\//g'
}


Should this be (notice the sed argument)?

# Takes out uneeded slashes. Repeated and final directory slashes:
# /some//path///somewhere/ -> /some/path/somewhere
function fix_dir_slashes
{
    dirname "$1/file" | sed -e 's/\/+/\//g'
}


I have looked for it, but found no documentation on the -E argument.

Note that with the tm_nfs drivers this is not an issue (i think...),
but for some reason, when building transfer driver similar to that
found in 
http://mperedim.wordpress.com/2010/09/26/opennebula-zfs-and-xen-%E2%80%93-part-2-instant-cloning/
this becomes visible as I do call this code...

Tiago
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to