A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ocsigen/lwt/issues/850 below:

Lwt_fmt.eprintf prints to stdout instead of stderr · Issue #850 · ocsigen/lwt · GitHub

The following test program:

let () =
  Lwt_main.run @@
  Lwt_fmt.eprintf "Test\n%!"

which is supposed to print into stderr the string "Test", followed by a newline, followed by flushing the stream, behaves as follows on the command line:

$ ./test >/dev/null
$ ./test 2>/dev/null
Test

So it prints into stdout instead of stderr.

The expected behavior would have been:

$ ./test >/dev/null
Test
$ ./test 2>/dev/null

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4