I know there is echoone that writes to stdout. Is it possible to redirect echoto stderr, or is there any other way to write to stderr?
echo
It is impossible to redirect echo, but the same can be achieved using writeLinein the descriptor stderr(special import is not required):
writeLine
stderr
stderr.writeLine("Error: ", 42)
Documentation links:
streams
system
Source: https://habr.com/ru/post/1688036/More articles:Possible comma abuse here - iosHow to print and combine text that is stored in a data frame? - rExtremely long chain of events Rx - c #Navigate up with RecycleView - androidКак сделать грамматику Perl 6 более чем одним (например: ex и: ov)? - perl6Adding and removing text to / from a ListBox hosted in WinForm using C # - stringUsing Cucumber.js with Jest - javascriptImage import breaks jest test - reactjsSending data to a database with a limited amount of fragments - javaWhy does my random number generator return negative values - javaAll Articles