Hacker News new | ask | show | jobs
by antonkochubey 17 days ago
if you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc
2 comments

  $ which() { echo foo; }
  $ \which
  foo
The backslash only prevents alias expansion.
He meant `command which`
> it'll always be a shell built-in

`command which` wouldn't have been the built-in

`exec /tmp/fake-bash` in bashrc to intercept everything?