- 论坛徽章:
- 8
|
man bash:
- After a command has been split into words, if it results in a simple command and an optional list of arguments, the following actions are taken.
- If the command name contains no slashes, the shell attempts to locate it. If there exists a shell function by that name, that function is invoked as described above in FUNCTIONS. If the name does not match a function, the shell searches for it in the list of shell builtins. If a match is found, that builtin is invoked.
- If the name is neither a shell function nor a builtin, and contains no slashes, bash searches each element of the PATH for a directory containing an executable file by that name........
复制代码 |
|