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

Javier Fontan jfontan at gmail.com
Wed Nov 3 09:09:07 PDT 2010


Hello,

We are using -E as BSD version needs that parameter for this regexp to
work and in our tests was working also on linux. Can you tell us what
is the error. Is it sed that does not recognize that command or does
not perform the intended task?

Bye

On Mon, Oct 25, 2010 at 3:30 PM, Tiago Batista <tiagosbatista at gmail.com> wrote:
> 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
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org


More information about the Users mailing list