Quote:

[ "${@:0-2:1}" = "." ] || echo

and this causes the seg. fault - always. But if I replace this with:-

anyvarname="$@"
[ "${anyvarname:0-2:1}" = "." ] || echo

there is no error


Actually, I was suprised that "${@ ... ]" works at all!

I suppose in the version of bash on the player, the coders may not have anticipated that anyone would even try it, since $@ means something quite different from "$@" or $*.

Cheers