-
Notifications
You must be signed in to change notification settings - Fork 296
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
[not braindead issue] rish mixes up stdout and stderr #178
Comments
Actually, this also prints nothing: |
Ok, whatevre is going on with stdout/stderr, it's very confusing and I can't figure out what happens to it. It seems rish can't be trusted to properly transfer these to the caller. This breaks tools like tar or rsync. |
I'm starting to figure out what's happening. Bug 1: If either stdout or stderr of the rish process are redirected or piped in any way, then rish closes the stderr file descriptor on the process it spawns.
Bug 2: Sometimes stderr is not closed, but stdout bleeds into stderr! This reproduces sometimes. Race condition?
Bug 3: Related to bug 1, processes inside rish that write a lot into stderr will eventually stall inside
|
(Seriously, what is going on in this issue tracker?!)
I have an actual bug report in relation to Shizuku 13.5.4. Rish is very useful, but it has one flaw: It conflates stdout and stderr. As I'm trying to do some backups over the network over rish, this is a major problem.
Simple test case:
rish -c 'echo stderr >&2' >/dev/null
This should print
stderr
. But it prints nothing, because the echo that ends up in stderr will end up on stdout.Hope this can be fixed somehow. Thanks a lot!
The text was updated successfully, but these errors were encountered: