porting my shell from lab19 to freeRTOS based on zzz0072's modification.