aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/param_expand_bash_substring.right
blob: 53b8836ff8a40282a46f0877e89ca1a921c3afe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
hush: syntax error: unterminated ${name}
0123456789
1    =||
1:1  =||
1:1:2=||
1::2 =||
1:1: =||
1::  =||
1    =|0123|
1:1  =|123|
1:1:2=|12|
1::2 =|01|
1:1: =||
1::  =||
f    =||
f:1  =||
f:1:2=||
f::2 =||
f:1: =||
f::  =||
f    =||
f:1  =||
f:1:2=||
f::2 =||
f:1: =||
f::  =||
f    =|a|
f:1  =||
f:1:2=||
f::2 =|a|
f:1: =||
f::  =||
f    =|0123456789|
f:1  =|123456789|
f:1:2=|12|
f::2 =|01|
f:1: =||
f::  =||
Substrings with expressions
f            =|01234567|
f:1+1:2+2    =|2345|
f:-1:2+2     =|01234567|
f:1:f        =|1234567|
f:1:$f       =|1234567|
f:1:${f}     =|1234567|
f:1:${f:3:1} =|123|
f:1:1`echo 1`=|1|
Done