The function wordexp(3)
is a POSIX C standard library function which
performs "word expansion like a POSIX shell". wordexp(3)
combines
the safety of elaborate string parsing in C with the efficiency and
robustness of invoking the shell on arbitrary user input. Why does it
even exist? And why shouldn't you use it?
(more)