an idea:
```
integer end = findfirstof (ret["stdout"]:"\r", "\r\n");
string  out = substring(ret["stdout"]:"", 0, end);
```