Wish/wish-sys/sys-part/bin/echo.js
2013-07-20 16:47:49 +02:00

7 lines
233 B
JavaScript

var EchoClass = function() {}
EchoClass.prototype = new Process();
EchoClass.prototype.main = function(args){
args.splice(0,1); // we do not want to echo the "echo"
this.files["stdout"].write(args.join(" ")+"\n");
this.exit(0);
}