-
Notifications
You must be signed in to change notification settings - Fork 796
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
assignment of the result of a subprocess to a variable hangs #2294
Comments
I see something very similar happening in Perl. Doing something like
causes a "hang", where the statement never finishes executing. However, doing something like
behaves correctly. If I do a "streaming" version of the same thing, I can confirm that the sqlplus command itself does in fact complete:
prints:
And then hangs. |
Not sure how this one got lost in the noise and wasn't marked need-repro from the get-go. If you are experiencing the problem in 1809 (aka 17763 aka RS5 aka October 2018 update) you can try rebooting the issue following CONTRIBUTING.md with particular attention to pasteable CLI repro steps from clean install and an strace log. |
I can't get away with clean-slating my current setup, but I'll see what I can do. |
You can generally fake it; what's important is the repro and the strace, noting that the probability of the issue getting attention is inversely proportional to the number of steps. How "clean" is relative. Another alternative is to install 16.04 from the Store (if you are running 18.04) or vice-verse. The Ubuntu version isn't going to make a difference, given the OP was from last year. [ed Notwithstanding any repro to go on I think this might be #2786 related so trying the October 2018 Update will matter.] Bonne chance. |
I installed the oracle instant client
sqlplus itself works fine. I can connet to databases without any problem.
But when I try to assign the result of a sqlplus command to a variable the bash hangs.
The sqlplus call itself finished successful and the subshell finished. But something hangs and the calling bash doesn't get the "focus" back.
Without a variable assignment it works.
It seems the problem has something to do with the output streams. Add a simple pipe and it works.
The text was updated successfully, but these errors were encountered: