# this is an error location line
if echo "$e" | grep -q "Spurious" ; then
loc=$(echo "$e" | sed 's/:.*$//' | cut -f 4 -d ' ')
- if ! [ -z "$spurious_errors" ] ; then spurious_errors="$spurious_errors," ; fi
- spurious_errors="$spurious_errors$loc"
+ if ! echo "$spurious_errors" | grep -q "$loc"; then
+ if ! [ -z "$spurious_errors" ] ; then spurious_errors="$spurious_errors," ; fi
+ spurious_errors="$spurious_errors$loc"
+ fi
else
loc=$(echo "$e" | sed 's/:.*$//' | cut -f 3 -d ' ')
- if ! [ -z "$errors" ] ; then errors="$errors," ; fi
- errors="$errors$loc"
+ if ! echo "$errors" | grep -q "$loc"; then
+ if ! [ -z "$errors" ] ; then errors="$errors," ; fi
+ errors="$errors$loc"
+ fi
fi
fi
error_pass=$(echo "$e" | grep "during phases " | sed 's/:.*$//' | cut -f 6 -d' ' | grep "4\|6")