print.c

lima-1.0b5/lib/cmds/wiz/print.c · 442 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

//:COMMAND
//USAGE print <string>
//
//Rarely used as "print", but extremely useful in the aliased form @
//(or eval) for print `$*` which evaluates the string and displays the result.
//
//>@ANSI_D
//
//would return /daemons/ansi_d.c

inherit CMD;

private void main(string str, mapping flags, string stdin)
{
  if(stdin)
    out(stdin);
  else
    out(str+"\n");
}

Site Stats

Snippets: 1791
Codebases: 571