Shell: Update section on input validation

Also mention safety of [[ $var =~ regexp ]].