1 | #!/usr/bin/env bash
|
2 | #
|
3 | # Semi-automatically extracted like this:
|
4 | #
|
5 | # grep ^echo spec/builtin-io.test.sh.
|
6 | #
|
7 | # For converting to gold/dollar-sq.sh.
|
8 |
|
9 | echo -e '\\'
|
10 | echo -en 'abc\ndef\n'
|
11 | echo -ez 'abc\n'
|
12 | echo -e '\a\b\d\e\f'
|
13 | echo -e '\n\r\t\v'
|
14 | echo -e 'ab\0cd'
|
15 | echo -e xy 'ab\cde' 'ab\cde'
|
16 | echo -e 'abcd\x65f'
|
17 | echo -e 'abcd\044e'
|
18 | echo -e 'abcd\u0065f'
|
19 | echo -e 'abcd\U00000065f'
|
20 | echo -e '_\u03bc_'
|
21 | echo -e '_\U000003bc_'
|
22 | echo -en '\03777' | od -A n -t x1 | sed 's/ \+/ /g'
|
23 | echo -en '\04000' | od -A n -t x1 | sed 's/ \+/ /g'
|
24 | echo -e '\0777' | od -A n -t x1 | sed 's/ \+/ /g'
|
25 | echo -en 'abcd\x6' | od -A n -c | sed 's/ \+/ /g'
|
26 | echo -e '\x' '\xg' | od -A n -c | sed 's/ \+/ /g'
|
27 | echo -e 'abcd\04' | od -A n -c | sed 's/ \+/ /g'
|
28 | echo -en 'abcd\u006' | od -A n -c | sed 's/ \+/ /g'
|
29 | echo -e '\u6' | od -A n -c | sed 's/ \+/ /g'
|
30 | echo -e '\0' '\1' '\8' | od -A n -c | sed 's/ \+/ /g'
|
31 |
|
32 | echo -e 'foo
|
33 | bar'
|
34 |
|
35 | echo -e 'foo\
|
36 | bar'
|