OLD | NEW |
(Empty) | |
| 1 "" |
| 2 '' |
| 3 "foo" |
| 4 'foo' |
| 5 "foo |
| 6 bar" |
| 7 'foo |
| 8 bar' |
| 9 "'foo'" |
| 10 '"bar"' |
| 11 "$@" |
| 12 "${foo}" |
| 13 << STRING_END |
| 14 foo |
| 15 bar |
| 16 STRING_END |
| 17 << EOF |
| 18 foo $@ |
| 19 bar |
| 20 EOF |
| 21 << 'EOF' |
| 22 'single quoted string' |
| 23 "double quoted string" |
| 24 EOF |
| 25 << "EOF" |
| 26 foo |
| 27 bar |
| 28 EOF |
| 29 |
| 30 ---------------------------------------------------- |
| 31 |
| 32 [ |
| 33 ["string", ["\"\""]], |
| 34 ["string", ["''"]], |
| 35 ["string", ["\"foo\""]], |
| 36 ["string", ["'foo'"]], |
| 37 ["string", ["\"foo\r\nbar\""]], |
| 38 ["string", ["'foo\r\nbar'"]], |
| 39 ["string", ["\"'foo'\""]], |
| 40 ["string", ["'\"bar\"'"]], |
| 41 ["string", [ |
| 42 "\"", ["variable", "$@"], "\"" |
| 43 ]], |
| 44 ["string", [ |
| 45 "\"", ["variable", "${foo}"], "\"" |
| 46 ]], |
| 47 ["operator", "<<"], |
| 48 ["string", ["STRING_END\r\nfoo\r\nbar\r\nSTRING_END"]], |
| 49 ["operator", "<<"], |
| 50 ["string", ["EOF\r\nfoo ", ["variable", "$@"], "\r\nbar\r\nEOF"]], |
| 51 ["operator", "<<"], |
| 52 ["string", ["'EOF'\r\n'single quoted string'\r\n\"double quoted string\"
\r\nEOF"]], |
| 53 ["operator", "<<"], |
| 54 ["string", ["\"EOF\"\r\nfoo\r\nbar\r\nEOF"]] |
| 55 ] |
| 56 |
| 57 ---------------------------------------------------- |
| 58 |
| 59 Checks for single-quoted and double-quoted strings. |
| 60 Also checks for variables in strings. |
OLD | NEW |