[ovs-dev] [PATCH] testsuite: make a sed command more portable
Ben Pfaff
blp at nicira.com
Tue Jun 4 17:01:23 UTC 2013
On Tue, Jun 04, 2013 at 09:17:34AM +0900, YAMAMOTO Takashi wrote:
> avoid using some GNU sed extensions, which are not available
> eg. on NetBSD's /usr/bin/sed.
>
> while there are other places these extenstions are used in the testsuite,
> this instance is new and seems the only one currently being executed
> for NetBSD.
>
> Signed-off-by: YAMAMOTO Takashi <yamt at mwd.biglobe.ne.jp>
I think that this makes two changes:
1. expands x\{1,\} to xx*.
2. writes x\{,1\} more explicitly as x\{0,1\}.
I see that POSIX does not allow x\{,1\} (I had not realized that
before), so change #2 one makes sense to me. But POSIX says that
\{m,\} is allowed, so I don't see why change #1 is necessary. Does
NetBSD not implement \{m,\}?
Thanks,
Ben.
More information about the dev
mailing list