grade.sh uses expr substr to cut string, which cannot be use in macos.
This problem exists from lab5 to lab8 (also in the corresponding lab_result folder), which can be solved by change one line into this
# example code in lab5, grade.sh, line 256
select=`echo $1 | cut -c 2-${#1}`
grade.sh
usesexpr substr
to cut string, which cannot be use in macos. This problem exists from lab5 to lab8 (also in the corresponding lab_result folder), which can be solved by change one line into thisJust a notice :-) .