OILS / test / lossless / multiline-str.ysh View on Github | oilshell.org

44 lines, 9 significant
1# Command Mode
2
3echo '''
4 single quoted
5 2
6 '''
7
8echo r'''
9 raw
10 str
11 '''
12
13echo u'''
14 J8
15 \u{3bc}
16 '''
17
18var x = 42
19echo """
20 dq $x
21 $[x + 1]
22 """
23
24# Expression Mode
25
26var x = '''
27 single quoted
28 2
29 '''
30
31var x = r'''
32 raw
33 str
34 '''
35
36var x = u'''
37 J8
38 \u{3bc}
39 '''
40
41var x = """
42 dq $x
43 $[x + 1]
44 """