[PATCH 2/3] posix: execvpe cleanup

Paul Eggert eggert@cs.ucla.edu
Sun Feb 28 03:31:00 GMT 2016


Adhemerval Zanella wrote:
> according to POSIX [1], "argv[0] should point to a filename string that
> is associated with the process being started by one of the exec functions"

Sure, but in this context the word "should" is talking about (as POSIX puts it) 
"a feature or behavior that is recommended programming practice for optimum 
portability."  A conforming application is not required to follow the 
recommendation, and in order to conform to POSIX glibc must support applications 
that do not follow the recommendation but otherwise conform.

My source for the above quote:

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap01.html#tag_01_05_06



More information about the Libc-alpha mailing list