Y
Hacker News
new
|
ask
|
show
|
jobs
by
yubiox
1346 days ago
what shell does this?
1 comments
forgotpwd16
1346 days ago
Apparently zsh replaces =cmd with cmd's absolute path. TIL.
link
Beltalowda
1346 days ago
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?!)
link
btdmaster
1346 days ago
Hack: \command instead of command is very unlikely to be aliased, so should work fine.
link
ykonstant
1345 days ago
This is a very useful hack, thanks. Unfortunately, my defensive scripting instincts do not allow me to use it on the "serious" situations.
link