Hello,
It is written in the 'man bash':
${parameter:offset:length}
If offset evaluates to a number less than zero, the value is used as an
offset from the end of the value of parameter.
But:
alex@dioscuri 17:25:14 148 ~ >echo $HOME
/dioscuri_1/alex
alex@dioscuri 17:32:53 161 ~ >echo ${HOME:-3:0}
/dioscuri_1/alex
alex@dioscuri 17:29:54 155 ~ >echo ${HOME:-3:3}
/dioscuri_1/alex
alex@dioscuri 17:30:01 157 ~ >echo ${HOME:-3:-3}
/dioscuri_1/alex
whereas
alex@dioscuri 17:35:40 169 ~ >echo ${BASH_VERSINFO[*]}
2 03 0 1 release sparc-sun-solaris2.7
Do I minunderstand anything?
Please cc: me your reply.
Thanks,
Alex