'echo' is shell-intern command

This commit is contained in:
overflowerror 2014-05-21 13:14:54 +02:00
parent 596b6bff28
commit 1c3abce100
2 changed files with 5 additions and 7 deletions

View file

@ -1,7 +0,0 @@
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);
}

View file

@ -84,6 +84,11 @@ WshClass.prototype.iCommands = {
return 0; return 0;
} }
return 1; return 1;
},
"echo": function(args, own) {
args.splice(0,1); // we do not want to echo the "echo"
own.files["stdout"].write(args.join(" ")+"\n");
return 0;
} }
} }
WshClass.prototype.state = 0; WshClass.prototype.state = 0;