
Quick Links:
Empeg FAQ
|
RioCar.Org
|
Hijack
|
BigDisk Builder
|
jEmplode
|
emphatic
Repairs: Repairs
|
#251890 - 18/03/2005 12:26
Re: bizarre shell problem
[Re: ukengb]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14511
Loc: Canada
|
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
|
Top
|
|
|
|
|
|
|