projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
shell: remove ${#+} tests, it is not a valid construct
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-vars
/
param_expand_bash_substring.right
1
hush: syntax error: unterminated ${name}
2
hush: syntax error: unterminated ${name}
3
hush: syntax error: unterminated ${name}
4
hush: syntax error: unterminated ${name}
5
0123456789
6
1 =||
7
1:1 =||
8
1:1:2=||
9
1::2 =||
10
1:1: =||
11
1:: =||
12
1 =|0123|
13
1:1 =|123|
14
1:1:2=|12|
15
1::2 =|01|
16
1:1: =||
17
1:: =||
18
f =||
19
f:1 =||
20
f:1:2=||
21
f::2 =||
22
f:1: =||
23
f:: =||
24
f =||
25
f:1 =||
26
f:1:2=||
27
f::2 =||
28
f:1: =||
29
f:: =||
30
f =|a|
31
f:1 =||
32
f:1:2=||
33
f::2 =|a|
34
f:1: =||
35
f:: =||
36
f =|0123456789|
37
f:1 =|123456789|
38
f:1:2=|12|
39
f::2 =|01|
40
f:1: =||
41
f:: =||
42
Substrings from special vars
43
? =|0|
44
?:1 =||
45
?:1:2=||
46
?::2 =|0|
47
?:1: =||
48
?:: =||
49
# =|11|
50
#:1 =|1|
51
#:1:2=|1|
52
#::2 =|11|
53
#:1: =||
54
#:: =||
55
Substrings with expressions
56
f =|01234567|
57
f:1+1:2+2 =|2345|
58
f:-1:2+2 =|01234567|
59
f:1:f =|1234567|
60
f:1:$f =|1234567|
61
f:1:${f} =|1234567|
62
f:1:${f:3:1} =|123|
63
f:1:1`echo 1`=|1|
64
Done