DOKK / manpages / debian 10 / binfmtc / realcxxsh.cc.1.en
realcsh(1) binfmt_C realcsh(1)

realcxxsh.c - A shell for running C++ code

realcxxsh.c [g++ options]

realcsh.c is an interactive shell that runs C++ source code. A line of input is handled as a line in main() function, and the resulting C++ code is compiled, and executed.

If a line starting with # such as #include <iostream> is entered, it is added to every code after that at the start of sourcecode.

The list of such lines can be seen with ##

The following is an example session

$ ./realcxxsh.cc 
REAL c++sh: cout << "Hello world0; 
Hello world
REAL c++sh: system ("pwd"); 
/home/dancer
REAL c++sh: 

The following is how the C code looks like.

/*BINFMTCXX:
*/
#include <iostream>
int main(int argc, char ** argv)
{
input-line
return 0;
}

Junichi Uekawa (dancer@debian.org)

Upstream page is available at http://www.netfort.gr.jp/~dancer/software/

binfmtc-interpreter(1), realcsh.c(1), realksh.c(8)

2007 Jan 13 binfmt_misc Dancer