> From: Paul Eggert <egg...@cs.ucla.edu> > Date: Sun, 23 Mar 2014 17:21:35 -0700 > > Although egrep's and fgrep's switch from shell scripts to > executables may have made sense in 2005, it complicated > maintenance and recently has caused subtle performance bugs. > Go back to the old way of doing things, as it's simpler and more > easily separated from the mainstream implementation. This should > be good enough nowadays, as POSIX has withdrawn egrep/fgrep and > portable applications should be using -E/-F anyway.
I urge you to reconsider: using shell scripts will be bad news for any system that doesn't use a Unix shell. Those whose muscle memory is used to typing "fgrep" will have hard time relearning to type "grep -F" instead.