<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Emoji";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>The actual solution was to add</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>process.exit();</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>To the end of my program.  This suits me well.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for your assistance.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:contact@wildpeaks.fr">Cecile Muller</a><br><b>Sent: </b>Thursday, February 23, 2017 11:12 AM<br><b>To: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Subject: </b>Re: Node.exe on windows 10 with bash.exe</p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>I'm glad you found a solution :)</p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>2017-02-23 16:54 GMT+01:00 <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>>:</p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal>It now appears to be more about node.exe now that they have people looking into it. (Good news)   We may get some traction, but they’ve tried to solve this problem before.   It may interfere with other usecases.</p><p class=MsoNormal> </p><p class=MsoNormal>It appears to be about blocking stderr and stdout.</p><p class=MsoNormal> </p><p class=MsoNormal> </p><p class=MsoNormal>Piping works fine with other programs, for example jjs.  There are some tricky programs that have to use winpty. If you just use node, you will get winpty node.exe as an alias from the shell.  node.exe is the way to go.</p><p class=MsoNormal> </p><p class=MsoNormal>You can try this quick program too:</p><p class=MsoNormal> </p><p class=MsoNormal><span style='color:#70AD47'>(node.exe fillbuffer.js && node.exe fillbuffer.js) | node.exe read.js</span></p><p class=MsoNormal> </p><p class=MsoNormal>Where read.js is:</p><p class=MsoNormal> </p><p class=MsoNormal><span style='color:#70AD47'>process.stdin.on('data', console.log);</span></p><p class=MsoNormal><span style='color:#70AD47'>process.stdin.on('end', console.log);</span></p><p class=MsoNormal> </p><p class=MsoNormal>Much simpler than the piping I came up with, and much more node centric. And all bash and node.js <span style='font-family:"Segoe UI Emoji",sans-serif'>😊</span></p><p class=MsoNormal><br>Thanks to the node.js team for their insights.</p><p class=MsoNormal><span style='color:#888888'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:#888888'>John<o:p></o:p></span></p><p class=MsoNormal><span style='color:#888888'> <o:p></o:p></span></p></div></div></blockquote></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>