Y
Hacker News
new
|
ask
|
show
|
jobs
by
yorwba
63 days ago
I'm pretty sure this will just call itself in a loop. You need to use the absolute path to the wrapped binary to distinguish it from the wrapper.
3 comments
oblio
63 days ago
Also it's not a binary :-)
link
figmert
63 days ago
Aah! Yes absolutely right! Using `exec command android-cli` would work I believe
link
panzi
63 days ago
Nope. I have this alias (a default on my distribution) and it's no loop:
alias ls='ls --color=auto'
link
yorwba
63 days ago
Creating an alias is not the same as putting an executable in your $PATH.
link
panzi
62 days ago
That's true. So an alias won't do it if you use that tool from a script or something.
link