[chrst@qcw11] 1371 (project/Ge): cat test.sh #/bin/bash var=${1:0:-4} echo $var [chrst@qcw11] 1372 (project/Ge): ./test.sh test.ing ./test.sh: 2: Bad substitution