问题
For example, sometimes I would like to run /bin/kill instead of the builtin kill. Is this best done as
env kill
or simply
/bin/kill
or perhaps something else?
回答1:
You seem to be looking the builtin enable. Saying enable -n kill would disable the builtin kill.
Say enable kill in order to enable it again.
The manual gives more information on Shell Builtin Commands.
回答2:
You want that a simple call to command kill should call /bin/kill & not the shell built-in.
There are 2 more options (in addition to what is specified by devnull's answer.):
You can alias kill to /bin/kill.
Or declare a function kill, which internally calls /bin/kill.
来源:https://stackoverflow.com/questions/17443108/run-external-program-instead-of-builtin