2 ms·
> The question here is: will anyone notice the breakage? Few months ago I wrote a feature request and patch to GNU coreutils that resulted in some discussion o
by matheusmoreira 3y ago
> The question here is: will anyone notice the breakage?
Few months ago I wrote a feature request and patch to GNU coreutils that resulted in some discussion of this NULL argv issue.
https://lists.gnu.org/archive/html/coreutils/2023-03/msg00002.html https://lists.gnu.org/archive/html/coreutils/2023-03/msg0000...
https://lists.gnu.org/archive/html/coreutils/2023-03/msg00004.html https://lists.gnu.org/archive/html/coreutils/2023-03/msg0000...
https://lists.gnu.org/archive/html/coreutils/2023-03/msg00010.html https://lists.gnu.org/archive/html/coreutils/2023-03/msg0001...
> An edge case is we may want to support allowing to specify a NULL argv[0].
So the GNU developers are aware of this issue. Perhaps they make use of it in other GNU software. Not sure.
It seems my patch wasn't accepted to the coreutils. I offered to add support for NULL argv, they said they were deciding what to do but I never got a reply. So env doesn't have this functionality yet.