3 ms·
Seems Linux version also depends on forking to the shell: https://code.woboq.org/userspace/glibc/posix/wordexp.c.html https://code.woboq.org/userspace/glibc/po
by self_awareness 8y ago
Seems Linux version also depends on forking to the shell:
https://code.woboq.org/userspace/glibc/posix/wordexp.c.html https://code.woboq.org/userspace/glibc/posix/wordexp.c.html
- leni536 8y agoFor the sake of completeness musl libc also does this. https://git.musl-libc.org/cgit/musl/tree/src/misc/wordexp.c#n111 https://git.musl-libc.org/cgit/musl/tree/src/misc/wordexp.c#...
- e12e 8y agoI guess the lesson is one might not want to implement word expansion in a shell using libc... [ed: if one has ambitions to function as /bin/sh...]
- deleted 8y ago[deleted]