]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/arith7.sub
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / arith7.sub
CommitLineData
a0c0a00f
CR
1PARAM=abcdefg
2
3echo ${PARAM:1 ? 4 : 2}
4echo ${PARAM:1 ? 4 : 2:1}
5
6echo ${PARAM: 4<5 ? 4 : 2}
7echo ${PARAM: 5>4 ? 4 : 2:1}
8
9echo ${PARAM:${OFFSET:-0}}
10OFFSET=4
11echo ${PARAM:${OFFSET:-0}}