[ovs-dev] [PATCH 2/3] ovn.at: Avoid using GNU sed extension

Ben Pfaff blp at ovn.org
Fri Nov 27 18:20:29 UTC 2015


On Thu, Nov 26, 2015 at 06:41:31PM +0900, YAMAMOTO Takashi wrote:
> Signed-off-by: YAMAMOTO Takashi <yamamoto at midokura.com>
> ---
>  tests/ovn.at | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/ovn.at b/tests/ovn.at
> index de0a830..a4dbf96 100644
> --- a/tests/ovn.at
> +++ b/tests/ovn.at
> @@ -566,7 +566,7 @@ ovn-sbctl dump-flows -- list multicast_group
>  # more) list the VIFs on which the packet should be received.  INPORT and the
>  # OUTPORTs are specified as lport numbers, e.g. 11 for vif11.
>  trim_zeros() {
> -    sed 's/\(00\)\{1,\}$//'
> +    sed 's/\(00\)\(00\)*$//'
>  }

I'm pretty sure this is a standard POSIX basic regular expression, see
9.3.6 item 5 at http://pubs.opengroup.org/onlinepubs/9699919799/.

BSD doesn't support it?



More information about the dev mailing list