Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thechao
on June 14, 2017
|
parent
|
context
|
favorite
| on:
Writing a Unix Shell – Part II
Since not a lot of folk knew this at my shop: wordexp() is the posix library for lexing strings "like the shell".
userbinator
on June 14, 2017
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: