Opened 12 years ago

Closed 12 years ago

#5161 closed Bugs (invalid)

program options bug

Reported by: n.amelad@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: program_options
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

Hi all,

When i am using program options backslashes in command line cause returned options corruption.

Create a program option like --my "c:\test\" --my1 "dummy value"

In this case when fetching my option you wll end up with "c:\test\" --my1 as the value

if i modify "c:\test\" to "c:\test" everything will work as expected.

Change History (2)

comment:1 by Vladimir Prus, 12 years ago

I think this is how Windows command line generally operates. Backslash before quote makes quote an ordinary character. Please see http://vladimir_prus.blogspot.com/2004/07/windows-command-line.html

comment:2 by Vladimir Prus, 12 years ago

Resolution: invalid
Status: newclosed

Lacking any further comments, I'm closing this one.

Note: See TracTickets for help on using tickets.