Y
Hacker News
new
|
ask
|
show
|
jobs
by
thechao
3286 days ago
Since not a lot of folk knew this at my shop: wordexp() is the posix library for lexing strings "like the shell".
1 comments
userbinator
3286 days ago
Note 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.
link