Luvit's global print
replacement (from deps/pretty-print
) fails when trying to pipe the output on Windows
#1163
Labels
print
replacement (from deps/pretty-print
) fails when trying to pipe the output on Windows
#1163
Example code:
Running it with
luvit test.lua
works, but when trying to re-route the output vialuvit test.lua > test.log
it fails:Expected behavior:
test.log
contains the text "Hello world"Actual behavior:
test.log
is emptyAdditional information:
cmd
and my usual Cmder shell.luvit test.lua | tee test.log
it does work as expected (tee
is included in cmder/cygwin, notcmd
)luvit test.lua | test.log
seems to work without errors, though it opens the editor window afterwardsRelevant code:
luvit/deps/pretty-print.lua
Line 302 in 2530814
The text was updated successfully, but these errors were encountered: