updated bash and brightscript syntax