This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello Andrey, Am 03.05.2019 um 20:52 schrieb Andrey Repin:
That gives me an error "Invalid handle", or, using `head` instead of `wsl`: head: failed to reopen 'stdin' with mode 'rb': Bad file descriptor.Greetings, Eliot Moss!On 5/2/2019 11:37 AM, Stephen Carrier wrote:On Wed, May 01, 2019 at 11:20:59AM +0200, Thomas Wolff wrote:Calling WSL seems to break pipe processing: (echo 1; echo 2) | while read line do echo $line wsl uname doneI don't know about wsl, but could it be absorbing the standard input? What if "wsl uname" is replaced with "wsl uname < /dev/null" ?You seem to be right; when I add < /dev/null as described, I get the expected output.Why not just wsl uname <&- I wonder?
By the way, a funny variant of the test case is (echo 1; echo 2) | while read line do echo $line head -1 done (Add an 'x' marker to the echo to watch the intricacies...) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |