mirror of
https://github.com/sigmasternchen/Wish
synced 2025-03-15 15:38:54 +00:00
'echo' is shell-intern command
This commit is contained in:
parent
596b6bff28
commit
1c3abce100
2 changed files with 5 additions and 7 deletions
|
@ -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);
|
|
||||||
}
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue