Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13333: Child processes started with boost::process have incorrect argv if executable path contains spaces
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-08 18:46:49
#13333: Child processes started with boost::process have incorrect argv if
executable path contains spaces
-------------------------------------------------+-------------------------
Reporter: Jonathan Jaloszynski | Owner: (none)
<Jon_Jaloszynski@â¦> |
Type: Bugs | Status: new
Milestone: To Be Determined | Component: process
Version: Boost 1.65.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------+-------------------------
Comment (by Jonathan Jaloszynski <Jon_Jaloszynski@â¦>):
When using the "command style" of execution with a quoted executable path,
the expected (2 argument) argv is received by the child process. This is
a bit of a hack since quoting the path is likely OS specific.
{{{
int main()
{
std::wstring cmdString = L"\"c:\\dir with space\\DumpCmdLine.exe\"
realArgument";
auto child = boost::process::child(boost::process::cmd =
cmdString);
child.wait();
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13333#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-12-08 18:53:22 UTC