boostorg / boostorg/process

basic shell command without arguments doesn't work in posix

Open
#251 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Description

a simple shell command like `echo 1` doesn't work in posix.

test:
```
#include

namespace bp = boost::process;

int main() {
return bp::system("echo 1", bp::shell);
}
```

this is a workaround:
```
#include

namespace bp = boost::process;

int main() {
return bp::system(bp::shell().string(), "-c", "echo 1");
}
```

I have a fix that I will submit as a pull request.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.