diff options
Diffstat (limited to 'test/bashisms/dynamic-length.sh')
-rw-r--r-- | test/bashisms/dynamic-length.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/bashisms/dynamic-length.sh b/test/bashisms/dynamic-length.sh new file mode 100644 index 0000000..fa76729 --- /dev/null +++ b/test/bashisms/dynamic-length.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +len=1 +f=foo + +echo "${f:1}" # BASHISM +echo "${f:$len}" # BASHISM +echo "${f:$len$len}" # BASHISM +echo "${f:${len}}" # BASHISM |