realcxxsh.cc(1)

realcxxsh.cc1

A shell for running c++ code

Usage

realcxxsh.c [g++ options]

Overview

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 ##

Examples

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: 

Internals

The following is how the C++ code looks like.

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

Releases

9 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0–12
  2. 13

Author

Junichi Uekawa ([email protected])

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

From binfmtc 0.17-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.