<p dir="auto">Ran into the same problem <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="441968455" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/2315" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/2315/hovercard" href="https://github.com/denoland/deno/issues/2315">#2315</a> , that's what I Deno.run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="clang -std=c++2a -g -IC:\Users\rs\***\***\*** -c -fno-exceptions -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-c99-extensions -fsanitize=address C:\Users\rs\***\Projects\***\***\src\node.cc -o C:\Temp\***\temp\src\node.cc.o"><pre class="notranslate"><code class="notranslate">clang -std=c++2a -g -IC:\Users\rs\***\***\*** -c -fno-exceptions -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-c99-extensions -fsanitize=address C:\Users\rs\***\Projects\***\***\src\node.cc -o C:\Temp\***\temp\src\node.cc.o
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno --version
deno 1.4.1
v8 8.7.75
typescript 4.0.2

systeminfo
...
OS Name:                   Microsoft Windows 10 Home Single Language
OS Version:                10.0.19041 N/A Build 19041
..."><pre class="notranslate"><code class="notranslate">deno --version
deno 1.4.1
v8 8.7.75
typescript 4.0.2

systeminfo
...
OS Name:                   Microsoft Windows 10 Home Single Language
OS Version:                10.0.19041 N/A Build 19041
...
</code></pre></div>
<p dir="auto">code: <a href="https://deno.land/x/buildsystem@0.1.5/mod.ts#L411" rel="nofollow">https://deno.land/x/buildsystem@0.1.5/mod.ts#L411</a></p>
<h3 dir="auto">Reproduction</h3>
<ol dir="auto">
<li>Generate test file:</li>
</ol>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="echo &quot;hello world&quot; &gt; file.txt
for i in {1..10}; do cat file.txt file.txt &gt; file2.txt &amp;&amp; mv file2.txt file.txt; done"><pre class="notranslate"><span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">"</span>hello world<span class="pl-pds">"</span></span> <span class="pl-k">&gt;</span> file.txt
<span class="pl-k">for</span> <span class="pl-smi">i</span> <span class="pl-k">in</span> {1..10}<span class="pl-k">;</span> <span class="pl-k">do</span> cat file.txt file.txt <span class="pl-k">&gt;</span> file2.txt <span class="pl-k">&amp;&amp;</span> mv file2.txt file.txt<span class="pl-k">;</span> <span class="pl-k">done</span></pre></div>
<ol start="2" dir="auto">
<li>create test.js</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const proc = Deno.run({
  cmd: [&quot;cat&quot;, &quot;test.json&quot;],
  stdout: &quot;piped&quot;,
  stderr: &quot;piped&quot;
});

const status = await proc.status();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">proc</span> <span class="pl-c1">=</span> <span class="pl-v">Deno</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
  <span class="pl-c1">cmd</span>: <span class="pl-kos">[</span><span class="pl-s">"cat"</span><span class="pl-kos">,</span> <span class="pl-s">"test.json"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-c1">stdout</span>: <span class="pl-s">"piped"</span><span class="pl-kos">,</span>
  <span class="pl-c1">stderr</span>: <span class="pl-s">"piped"</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-s1">status</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">proc</span><span class="pl-kos">.</span><span class="pl-en">status</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ol start="3" dir="auto">
<li>run test.ts</li>
</ol>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno --allow-run test.js"><pre class="notranslate">deno --allow-run test.js</pre></div>
<ol start="4" dir="auto">
<li>Deno gets stuck on <code class="notranslate">await proc.status()</code>.</li>
</ol>