Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] command line parsing

In CDT we have couple places where we have to parse command line arguments,
make commands args and launch command args.
Pre-5.0 it was very inconsistent and broken (the way quotes, spaces and other non-trivial case were parsed).
I fixed it 5.0.2 and now it consistent and work as unix "shell" command line parsing works.
With one problem. Windows. On windows "\" can be used in path names and therefore cannot be used as escape character.
I forgot about that. So we have a dilemma - do we use 2 different way of escaping command line on windows and linux, or
use linux one - but with complications on windows (i.e user would have to use \\ to escape \ or unquote this) or
come up with some 3rd schema which would cover both (which I am not aware of now).

original bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241072

windows \ expansions bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=263924


Back to the top