Behaves different on my osx and linux machines
Christian Köstlin
christian.koestlin at gmail.com
Fri Dec 22 20:21:09 UTC 2023
On Friday, 22 December 2023 at 15:02:42 UTC, Kagamin wrote:
> Add more debugging?
> ```
> bool done = false;
> while (!done) {
> writeln(1);
> auto result = ["echo", "Hello World"].execute;
> if (result.status != 0)
> {
> writeln(2);
> throw new Exception("echo failed");
> }
> writeln(result.output);
> receiveTimeout(dur!"msecs"(-1),
> (LinkTerminated t) {
> writeln("Done");
> done = true;
> },
> );
> writeln(3);
> }
> writeln("ByeBye");
> ```
Thanks for the suggestion. But it still behaves the same:
Output:
```
Running vibe-io
1
Please enter something:
asdf
You entered asdf
Please enter something:
Hello World
3
1
asdf
You entered asdf
Please enter something:
Hello World
3
1
qwer
You entered qwer
Please enter something:
Hello World
3
1
```
More information about the Digitalmars-d-learn
mailing list