[one-users] tm_common.sh.... typo??

Tiago Batista tiagosbatista at gmail.com
Mon Oct 25 06:30:41 PDT 2010


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



More information about the Users mailing list