From aa27d2bebccaf5fb8fbe30db6415e06f9663b0d3 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Sat, 3 Aug 2013 16:29:14 +0200 Subject: [PATCH] super short pwd command --- wish-sys/sys-part/bin/pwd.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 wish-sys/sys-part/bin/pwd.js diff --git a/wish-sys/sys-part/bin/pwd.js b/wish-sys/sys-part/bin/pwd.js new file mode 100644 index 0000000..25d4b8e --- /dev/null +++ b/wish-sys/sys-part/bin/pwd.js @@ -0,0 +1,7 @@ +var PwdClass = function() { +} +PwdClass.prototype = new Process(); +PwdClass.prototype.main = function(args) { + this.files['stdout'].write(this.Environment.array['PWD'] + "\n"); + this.exit(0); +}