summaryrefslogtreecommitdiffstats
path: root/test/bashisms/dynamic-length.sh
blob: fa7672922796f1bea681f8e335d259044a2850da (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

len=1
f=foo

echo "${f:1}" # BASHISM
echo "${f:$len}" # BASHISM
echo "${f:$len$len}" # BASHISM
echo "${f:${len}}" # BASHISM