-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow unmatched square-brackets in values (#782)
Co-authored-by: George Hansper <[email protected]>
- Loading branch information
1 parent
ff7e200
commit 187de8b
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
find this: ]][ )( . * $ / \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
#insert after /files/tmp/test-quoted-strings.txt/*[. =~ regexp('find.*')] 'found [' | ||
commands=" | ||
set /files/var/tmp/test-quoted-strings.txt/01 '[' | ||
set /files/var/tmp/test-quoted-strings.txt/02 ']' | ||
set /files/var/tmp/test-quoted-strings.txt/03 '][' | ||
set /files/var/tmp/test-quoted-strings.txt/04 '[]' | ||
set /files/var/tmp/test-quoted-strings.txt/05 '[][' | ||
set /files/var/tmp/test-quoted-strings.txt/06 '[]]' | ||
set /files/var/tmp/test-quoted-strings.txt/07 '(' | ||
set /files/var/tmp/test-quoted-strings.txt/08 ')' | ||
set /files/var/tmp/test-quoted-strings.txt/09 '"\""' | ||
insert 010 after /files/var/tmp/test-quoted-strings.txt/seq::*[.=~regexp('.*\]\]\[ \)\( .*')] | ||
set /files/var/tmp/test-quoted-strings.txt/010 'found ]][ )(' | ||
insert 011 after /files/var/tmp/test-quoted-strings.txt/seq::*[.=~regexp('.*\\\..*')] | ||
set /files/var/tmp/test-quoted-strings.txt/011 'found .' | ||
" | ||
lens=Simplelines.lns | ||
file="/var/tmp/test-quoted-strings.txt" | ||
|
||
diff='--- /var/tmp/test-quoted-strings.txt | ||
+++ /var/tmp/test-quoted-strings.txt.augnew | ||
@@ -1 +1,12 @@ | ||
find this: ]][ )( . * $ / \ | ||
+found . | ||
+found ]][ )( | ||
+[ | ||
+] | ||
+][ | ||
+[] | ||
+[][ | ||
+[]] | ||
+( | ||
+) | ||
+"' |