Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork and Exec have divergent behavior with line feeds #2414

Open
sabarjp opened this issue Oct 5, 2023 · 1 comment
Open

Fork and Exec have divergent behavior with line feeds #2414

sabarjp opened this issue Oct 5, 2023 · 1 comment

Comments

@sabarjp
Copy link

sabarjp commented Oct 5, 2023

I’ve been using karate.exec for a bit to run a custom tool and had to migrate to using karate.fork due to some additional features that fork provides. One problem is that (from what I can tell) the forked process will always append new lines to each line of buffered output, which is opposite of how exec works.

The docs do not mention this behavioral difference. Ideally this is documented, but even better would be if this could be customized behavior.

@ptrthomas
Copy link
Member

@sabarjp would be great if you can attempt a PR and we happen to be in hacktoberfest - would you be able to provide a simple way to replicate ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants