fixed redirect output bug in bql prompt