<p dir="auto"><code class="notranslate">test/repl.jl</code> was added in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34228161" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/6955" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/6955/hovercard" href="https://github.com/JuliaLang/julia/pull/6955">#6955</a>, most of the file is <code class="notranslate">@unix_only</code> at the moment except a few lines at the very end. These lines are freezing for me on Windows, but they're using process commands that you'd think <em>should work</em>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+3381 (2014-06-02 13:19 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit ddf4197* (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia&gt; exename = joinpath(JULIA_HOME, &quot;julia&quot;)
&quot;D:\\code\\msys64\\home\\Tony\\julia\\usr\\bin\\julia&quot;

julia&gt; outs, ins, p = readandwrite(`$exename -f --quiet`)
(Pipe(active, 0 bytes waiting),Pipe(open, 0 bytes waiting),Process(`'D:\code\msy
s64\home\Tony\julia\usr\bin\julia' -f --quiet`, ProcessRunning))

julia&gt; write(ins,&quot;1\nquit()\n&quot;)
9

julia&gt; ins
Pipe(open, 0 bytes waiting)

julia&gt; outs
Pipe(active, 2 bytes waiting)

julia&gt; readall(outs)"><pre class="notranslate"><code class="notranslate">  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+3381 (2014-06-02 13:19 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit ddf4197* (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia&gt; exename = joinpath(JULIA_HOME, "julia")
"D:\\code\\msys64\\home\\Tony\\julia\\usr\\bin\\julia"

julia&gt; outs, ins, p = readandwrite(`$exename -f --quiet`)
(Pipe(active, 0 bytes waiting),Pipe(open, 0 bytes waiting),Process(`'D:\code\msy
s64\home\Tony\julia\usr\bin\julia' -f --quiet`, ProcessRunning))

julia&gt; write(ins,"1\nquit()\n")
9

julia&gt; ins
Pipe(open, 0 bytes waiting)

julia&gt; outs
Pipe(active, 2 bytes waiting)

julia&gt; readall(outs)
</code></pre></div>
<p dir="auto">This last command never exits, I have to manually kill the julia process(es).</p>
<hr>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="exename = joinpath(JULIA_HOME, &quot;julia&quot;)
outs, ins, p = readandwrite(`$exename -f --quiet`)
write(ins,&quot;1\nquit()\n&quot;)
readall(outs)"><pre class="notranslate"><code class="notranslate">exename = joinpath(JULIA_HOME, "julia")
outs, ins, p = readandwrite(`$exename -f --quiet`)
write(ins,"1\nquit()\n")
readall(outs)
</code></pre></div>
<p dir="auto">For some reason jl_is_pty (or more precisely the pNtQueryInformationFile in uv_get socketname) blocks until another character is received on stdin.</p>