News for hackers. Stuff that matters.
Re:Bash 5.0 released by int_19h on Tuesday January 08, 2019 @12:35AM (#18853473)
argv[0] is defined to be the "program name" by ISO C. What exactly this means is obviously platform dependent, and of course the caller can ignore it altogether and put something random there, but at that point they're the ones misusing the API in a way that breaks the spec.

Note that this is ISO C, not even POSIX. So ELF, Bourne shell etc are implementation details that are out of scope on this level.

There are no comments on this comment yet.