4 ms·
You can escape file names that look like options with '--'.
by tuukkah 10y ago
You can escape file names that look like options with '--'.
- ufo 10y agoThis depends on the application recognizing the -- convention and also depends on having all the little scripts in your system remembering to use the --.
- kazinator 10y agoEven if the OS kernel provided a process launching API with separated options and arguments, that would not remove the need for the -- syntax to remove the ambiguity at the shell level, and hence your need to use that in scripts. It would remove the problem of programs all being required to implement --.