projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
hush: fix ${##}, ${#?}, ${#!} handling
[oweals/busybox.git]
/
shell
/
hush_test
/
hush-vars
/
var_bash1.tests
1
var=abcdef
2
3
echo ${var:7}
4
echo ${var:6}
5
echo ${var:5}
6
echo ${var:1}
7
echo ${var:0}
8
echo ${var:-1}
9
10
echo ${var:1:4}
11
echo ${var:0:4}
12
echo ${var::4}
13
echo ${var:-1:4}
14
15
echo ${var:1:7}
16
echo ${var:0:7}
17
echo ${var::7}
18
echo ${var:-1:7}