repo.or.cz
/
bush.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
init version.
[bush.git]
/
tests.bak
/
arith7.sub
blob
1b73ba7eb8b1204ea3598fef7baf2a68cb315fbd
1
PARAM=abcdefg
2
3
echo ${PARAM:1 ? 4 : 2}
4
echo ${PARAM:1 ? 4 : 2:1}
5
6
echo ${PARAM: 4<5 ? 4 : 2}
7
echo ${PARAM: 5>4 ? 4 : 2:1}
8
9
echo ${PARAM:${OFFSET:-0}}
10
OFFSET=4
11
echo ${PARAM:${OFFSET:-0}}