Hacker News new | past | comments | ask | show | jobs | submit login

>but it did work on that OS

This will probably work correctly on any POSIX system (well, except that it completely ignores escaping). Also I'm not sure why you would want to reconstruct cmdline in your program (that will lead to Windows-like horror where kernel only passes single string as cmdline and every component along the way interprets it with different escaping rules).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: