继传相同的值是函数声明:为什么我们在第一个2参数execlp()的
int execlp(const char *file, const char *arg, ...);
和下面的说法描述:
file: The executable that has to be executed by the new process. This executable is searched for in the path specified by the environmental variable PATH.
*arg,...: list of arguments terminated by a NULL argument.
那么为什么我们称之为功能是这样的:
execlp("ls","ls",NULL);
它会不会变成“ls -ls”,是什么意思?
因此,它将是'ls'而不是'ls -ls'。 – ameyCU
是的,你是正确的,但我只是无法将它与任何写在手册页:) :) –