Hacker News new | ask | show | jobs
by Beltalowda 1346 days ago
I don't think grep does any argv-stuff; I took a quick look and I don't see it.

As far as I can tell this is the entire maintenance burden:

  $ cat =egrep =fgrep
  #!/bin/sh
  exec grep -E "$@"
  #!/bin/sh
  exec grep -F "$@"
1 comments

what shell does this?
Apparently zsh replaces =cmd with cmd's absolute path. TIL.
Yes, very useful to bypass aliases if need be, quickly edit a script ("vi =my-script"), etc. I don't think bash has it; you need to use where/whence/which/command/whatever (I can never remember, why are there so many?!)
Hack: \command instead of command is very unlikely to be aliased, so should work fine.
This is a very useful hack, thanks. Unfortunately, my defensive scripting instincts do not allow me to use it on the "serious" situations.