September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -0,0 +1 @@
io.write( io.stderr, "Goodbye, World!\n" )

View file

@ -0,0 +1 @@
EPRINT "Goodbye, World!"

View file

@ -1,5 +1,5 @@
#include <iostream>
int main () {
std::cerr << "Goodbye, World!" << std::endl;
int main() {
std::cerr << "Goodbye, World!\n";
}

View file

@ -0,0 +1,3 @@
fun main(args: Array<String>) {
System.err.println("Goodbye, World!")
}

View file

@ -0,0 +1,2 @@
errprint(`Goodbye, World!
')dnl

View file

@ -0,0 +1 @@
error "Goodbye World"

View file

@ -0,0 +1 @@
.error~lineout("Goodbye, World!")

View file

@ -0,0 +1 @@
.stderr~lineout("Goodbye, World!")

View file

@ -1,13 +1,8 @@
/* REXX ---------------------------------------------------------------
* 07.07.2014 Walter Pachl
* enter the appropriate command shown in a command prompt.
* "rexx serr.rex 2>err.txt"
* or "regina serr.rex 2>err.txt"
* 2>file will redirect the stderr stream to the specified file.
* I don't know any other way to catch this stream
* 12.07.2014 WP see Discussion where redirection from within the program is shown
*--------------------------------------------------------------------*/
Parse Version v
Say v
Say 'rexx serr 2>err.txt directs the stderr output to the file err.txt'
Call lineout 'stderr','Good bye, world!'
Call lineout ,'Hello, world!'
Say 'and this is the error output:'

View file

@ -1,9 +1,8 @@
use std::io::{self,Write};
fn main() {
writeln!(&mut io::stderr(), "Goodbye, world!").expect("Could not write to stderr");
// writeln! supports formatted strings so the following works as well
let goodbye = "Goodbye";
let world = "world";
writeln!(&mut io::stderr(), "{}, {}!", goodbye, world).expect("Could not write to stderr");
use ::std::io::Write;
let (stderr, errmsg) = (&mut ::std::io::stderr(), "Error writing to stderr");
writeln!(stderr, "Bye, world!").expect(errmsg);
let (goodbye, world) = ("Goodbye", "world");
writeln!(stderr, "{}, {}!", goodbye, world).expect(errmsg);
}

View file

@ -0,0 +1 @@
error("Goodbye, World!")

View file

@ -0,0 +1,4 @@
#n
1 {
s/.*/Goodbye, World!/w /dev/stderr
}

View file

@ -0,0 +1,2 @@
$ echo a | sed -f error.sed >/dev/null
Goodbye, World!

View file

@ -0,0 +1 @@
WScript.StdErr.WriteLine "Goodbye, World!"

View file

@ -0,0 +1 @@
File.stderr.writeln("Goodbye, World!")