Re:Why bother with argv[0]?
by kelnos on Tuesday September 03, 2024 @10:14PM
(#41441224)
I don't think that really follows. If the OS wants to track this, it should canonicalize the path to the executable on startup, and then stash it somewhere.
(And a program could do that itself, if it wants to.)
(And a program could do that itself, if it wants to.)