#!/bin/sh errs=" abort aborted aborting absent alarm are_not aren't bad breaking broken can't cannot can_not could couldn't denied did_not didn't do_not don't does_not doesn't error exception expired fail failed failure fatal fault has_not hasn't have_not haven't illegal invalid is_not isn't kill killed killing lost missing not_able not_allowed not_permitted not_respond not_responding permission problem refused refusing severe strange such unable unknown warn warning was_not wasn't were_not weren't wrong " pat='$.' # impossible to match for i in $errs do pat="$i|$pat" done pat=`echo "$pat" | sed 's/_/ /g'` pat="(^|[^-a-z0-9_])($pat)([^-a-z0-9_]|$)" export LANG=C exec egrep -i "$pat" ${1+"$@"}