Handling argc==0 in the kernel
Handling argc==0 in the kernel
Posted Jan 28, 2022 17:00 UTC (Fri) by larkey (guest, #104463)In reply to: Handling argc==0 in the kernel by corbet
Parent article: Handling argc==0 in the kernel
But I think that Ariadne's patch should be applied nontheless. It's just that there's much confusion about these two different issues (although related).
Posted Jan 29, 2022 18:56 UTC (Sat)
by adobriyan (subscriber, #30858)
[Link] (2 responses)
for (int i = 1; i < argc; ++i) { const char *arg = argv[i]; ... }
Posted Jan 30, 2022 23:32 UTC (Sun)
by rschroev (subscriber, #4164)
[Link] (1 responses)
Posted Jan 31, 2022 1:01 UTC (Mon)
by jreiser (subscriber, #11027)
[Link]
Because that does not accommodate state changes: deleting, re-arranging, or re-writing pieces of argv (and thus argc); because the GNU getopt routine has not always existed, has not always offered all its current features, and early suffered from bugs; and probably other reasons, too.
Handling argc==0 in the kernel
Handling argc==0 in the kernel
>Why do people even try to come up with other ways to do things?
Handling argc==0 in the kernel