BUG: Foam::system command swallows first argument (fixes #901)

This commit is contained in:
Mark Olesen
2018-06-22 15:18:41 +02:00
parent 6390c18381
commit c8fd217e95
6 changed files with 22 additions and 73 deletions

View File

@ -498,7 +498,7 @@ bool Foam::dynamicCode::copyOrCreateFiles(const bool verbose) const
bool Foam::dynamicCode::wmakeLibso() const
{
stringList cmd{"wmake", "-s", "libso", this->codePath()};
stringList cmd({"wmake", "-s", "libso", this->codePath()});
// NOTE: could also resolve wmake command explicitly
// cmd[0] = stringOps::expand("$WM_PROJECT_DIR/wmake/wmake");