]> arthur.barton.de Git - bup.git/blobdiff - t/lib.sh
test-meta.sh: escape user/group expressions
[bup.git] / t / lib.sh
index 372f0d20d5d5983ee0c8428d3a6cdda9473344c3..84b942137f882aaf138c47e05d867c5a8c7f113e 100644 (file)
--- a/t/lib.sh
+++ b/t/lib.sh
@@ -46,3 +46,8 @@ path-filesystems()
     done
     exit 0
 )
+
+escape-erx()
+{
+    sed 's/[][\.|$(){?+*^]/\\&/g' <<< "$*"
+}