From 8d3e4e8c12984565ca30fe58c4612c8a85bc4d43 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Thu, 9 Jun 2022 10:22:37 +0000
Subject: Add =~ operator to s6-test
Signed-off-by: Laurent Bercot
---
doc/s6-test.html | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'doc/s6-test.html')
diff --git a/doc/s6-test.html b/doc/s6-test.html
index 3764a5c..a8424cd 100644
--- a/doc/s6-test.html
+++ b/doc/s6-test.html
@@ -41,6 +41,16 @@ disambiguation technique that has unfortunately not been chosen by the standard.
s6-test accepts an arbitrary number of arguments.
+ Exit codes
+
+
+ - 0: the test is true
+ - 1: the test is false
+ - 100: wrong usage
+ - 101: internal error (should never happen, warrants a bug-report)
+ - 111: system call failure
+
+
Posixness
@@ -55,6 +65,11 @@ exact same behaviour.
- -v VAR : tests whether the
VAR variable is defined in the current environment.
+ - string =~ pattern :
+tries to match string against extended regular expression
+pattern. True if any part of string matches pattern;
+in order to match whole strings, you must anchor pattern with
+^ and $ markers.