Hacker News new | ask | show | jobs
by yubiox 1346 days ago
what shell does this?
1 comments

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.