Hacker News new | ask | show | jobs
by inigyou 9 days ago
It's a problem with mixing code and data, therefore needing to escape. You can solve it by adding another symbol, let's call it Options Introducer, but that doesn't actually solve it because someone can name a file starting with Options Introducer. GUIs don't have this problem because you are clearly typing in the textbox or outside of it, or even better, you can select the file you mean.
1 comments

You could use an illegal file name symbol as the Options Introducer?
Then you have to have an illegal filename symbol.
Those already exist?
It's really hard to start POSIX options with a NUL byte.