Browse code

tests/t_lpback.sh: Switch sed(1) to POSIX-compatible regex.

A test run with FreeBSD PR 229925 'Disallow escaping ordinary
characters in regex(3)' reveals one sed expression that uses the
GNU-extension "\s".

Given that this is the only occurrence and it's a trivial fix,
update it to be POSIX-compatible.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190906174458.14975-2-matthias.andree@gmx.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18806.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Kyle Evans authored on 2019/09/07 02:44:59
Showing 1 changed files
... ...
@@ -26,7 +26,7 @@ trap "rm -f key.$$ tc-server-key.$$ tc-client-key.$$ log.$$ ; exit 1" 0 3
26 26
 
27 27
 # Get list of supported ciphers from openvpn --show-ciphers output
28 28
 CIPHERS=$(${top_builddir}/src/openvpn/openvpn --show-ciphers | \
29
-            sed -e '/The following/,/^$/d' -e s'/ .*//' -e '/^\s*$/d')
29
+            sed -e '/The following/,/^$/d' -e s'/ .*//' -e '/^[[:space:]]*$/d')
30 30
 
31 31
 # SK, 2014-06-04: currently the DES-EDE3-CFB1 implementation of OpenSSL is
32 32
 # broken (see http://rt.openssl.org/Ticket/Display.html?id=2867), so exclude