shell: add scan1: Review let, while-do-done, if-then-else-fi