summaryrefslogtreecommitdiffstats
path: root/tests/arith7.sub
blob: 1b73ba7eb8b1204ea3598fef7baf2a68cb315fbd (plain)
1
2
3
4
5
6
7
8
9
10
11
PARAM=abcdefg

echo ${PARAM:1 ? 4 : 2}
echo ${PARAM:1 ? 4 : 2:1}

echo ${PARAM: 4<5 ? 4 : 2}
echo ${PARAM: 5>4 ? 4 : 2:1}

echo ${PARAM:${OFFSET:-0}}
OFFSET=4
echo ${PARAM:${OFFSET:-0}}