Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-augtool / quoted-strings.sh
1 #!/bin/bash
2
3 commands="
4 set /files/var/tmp/test-quoted-strings.txt/01 '['
5 set /files/var/tmp/test-quoted-strings.txt/02 ']'
6 set /files/var/tmp/test-quoted-strings.txt/03 ']['
7 set /files/var/tmp/test-quoted-strings.txt/04 '[]'
8 set /files/var/tmp/test-quoted-strings.txt/05 '[]['
9 set /files/var/tmp/test-quoted-strings.txt/06 '[]]'
10 set /files/var/tmp/test-quoted-strings.txt/07 '('
11 set /files/var/tmp/test-quoted-strings.txt/08 ')'
12 set /files/var/tmp/test-quoted-strings.txt/09 '"\""'
13 insert 010 after /files/var/tmp/test-quoted-strings.txt/seq::*[.=~regexp('.*\]\]\[ \)\( .*')]
14 set /files/var/tmp/test-quoted-strings.txt/010 'found ]][ )('
15 insert 011 after /files/var/tmp/test-quoted-strings.txt/seq::*[.=~regexp('.*\\\\..*')]
16 set /files/var/tmp/test-quoted-strings.txt/011 'found .'
17 "
18 lens=Simplelines.lns
19 file="/var/tmp/test-quoted-strings.txt"
20
21 diff='--- /var/tmp/test-quoted-strings.txt
22 +++ /var/tmp/test-quoted-strings.txt.augnew
23 @@ -1 +1,12 @@
24  find this: ]][ )( . * $ / \
25 +found .
26 +found ]][ )(
27 +[
28 +]
29 +][
30 +[]
31 +[][
32 +[]]
33 +(
34 +)
35 +"'