Any attempt to use grep on my system results in this:

grep: unrecognized option '--skip-triggers'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

I can't find anywhere that this skip-triggers option exists in .bashrc, .profile, or $GREP_OPTIONS. "type grep" says

grep is aliased to `grep --color=auto'

Obviously there is no --skip-triggers option in grep, but there is in mysql so my hypothesis is that somehow in grepping through mysql data I have got this bit cached somewhere in a hidden file. And normally I would do something like

grep -R skip-triggers *

but I can't due to the error. >.<

Also this first appeared simultaneously with an upgrade from ubuntu 14.04 to 16.04. I am assuming that is unrelated but I'm not sure.

All suggestions are welcome.

  • 1
    What happens if you use /bin/grep?
    – heemayl
    Aug 23 '16 at 12:21
  • You could boot from a Live USB system and execute the grep from there.
    – Jos
    Aug 23 '16 at 12:48
  • You could also try running type -a grep
    – wjandrea
    Aug 23 '16 at 14:55
  • @heemayl - same result.
    – twowheeler
    Aug 24 '16 at 1:19
  • @wjandrea - grep is aliased to `grep --color=auto' grep is /bin/grep
    – twowheeler
    Aug 24 '16 at 1:23

In case anyone else needs to know: Inspired by @Jos answer, I loaded up a virtualbox running windows and searched for the skip-triggers text. Turns out there was a file named "--skip-triggers" containing mysql output. I deleted that file and all is well. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.