I have C ++ code that expects it to look like this:
/ path / to / exe -p: parameterName = "[/ path / to / a / file, / path / to / another / file]"
including quotation marks. They can be single or double quotes, but they must be there. In Eclipse, if I configure the command line arguments (Debug configurations / Arguments) and enter the command line option above (minus / path / to / exe), Eclipse eats quotes. Since I run this on Linux, the square brackets give the shell grief, and it never turns it into my code.
If I configure the command line arguments this way:
"it is quoted"
argv [1] is as follows:
it is quoted
i.e. without quotes. If I configure the command line this way:
\ "this is quoted \"
I get:
argv[1]: "this argv[2]: is argv[3]: quoted"
If I try to put square brackets in it, it returns to the shell mourning pressure, even if I try to avoid them:
\"\[this is quoted\]\"
How can I tell Eclipse to accept command line arguments exactly the same as I entered them?
thanks
source share