diff options
Diffstat (limited to 'tests/string.in')
-rw-r--r-- | tests/string.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/string.in b/tests/string.in index 1c78e2b3..8afc97ff 100644 --- a/tests/string.in +++ b/tests/string.in @@ -55,6 +55,8 @@ string replace -r '(\w+)\s+(\w+)' '$2 $1 $$' 'left right' string replace -r '\s*newline\s*' '\n' 'put a newline here' +string replace -r -a '(\w)' '$1$1' ab + # test some failure cases string match -r '[' 'a[sd' 2>/dev/null; or echo "invalid expression error" |