This commit changes '\?' to '\{0,1\}' to avoid using GNU
sed extension.
Found by using the script in FreeBSD.
Signed-off-by: Alex Wang <[email protected]>
---
utilities/ovs-command-compgen.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utilities/ovs-command-compgen.bash
b/utilities/ovs-command-compgen.bash
index a515c1d..fa3f1e6 100755
--- a/utilities/ovs-command-compgen.bash
+++ b/utilities/ovs-command-compgen.bash
@@ -191,7 +191,7 @@ subcmd_find_comp_based_on_input() {
fi
# Trims the 'combs', keeps context only after 'kword'.
if [ -n "$combs" ]; then
- combs="$(sed -n "s@^.*\[\?$kword|\?[a-z_]*\]\? @@p" <<< "$combs")"
+ combs="$(sed -n "s@^.*\[\{0,1\}$kword|\{0,1\}[a-z_]*\]\{0,1\} @@p"
<<< "$combs")"
fi
done
comps="$(find_possible_comps "$combs")"
--
1.7.9.5
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev