]> arthur.barton.de Git - bup.git/commit
test-meta.sh: escape user/group expressions
authorRob Browning <rlb@defaultvalue.org>
Tue, 14 Oct 2014 17:20:14 +0000 (12:20 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 17 Oct 2014 16:13:13 +0000 (11:13 -0500)
commitcc1c249666e0804b63523dbcc9af1f4d194aa309
treecb1ab67aa59aeff4868ff185d32de25f7d1731c0
parentddb5f330d8b17dad28d5bbd73e04c25735a85835
test-meta.sh: escape user/group expressions

Escape external user/group strings before passing them to 'grep -E',
otherwise calls like this will fail when the string includes regular
expression metacharacters:

Thanks to Pierre-Emmanuel Novac <piernov@gmail.com> for reporting the
problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/lib.sh
t/test-meta.sh