3 ms·
Since not a lot of folk knew this at my shop: wordexp() is the posix library for lexing strings "like the shell".
by thechao 9y ago
Since not a lot of folk knew this at my shop: wordexp() is the posix library for lexing strings "like the shell".
- userbinator 9y agoNote that wordexp() will also, unless explicitly told otherwise, perform command substitution and thus is capable of executing other processes. Be wary of using it on untrusted input.