From e5fbc10055f2a499583813a9a6759ce091f952e3 Mon Sep 17 00:00:00 2001 From: BlackLight Date: Sat, 8 Jan 2011 20:14:22 +0100 Subject: [PATCH] Fixing executable for supporting also /path/file --- system/blash.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/blash.js b/system/blash.js index 430d1e0..2644fbb 100644 --- a/system/blash.js +++ b/system/blash.js @@ -404,10 +404,15 @@ function blash () this.history.push ( this.prompt.value ); this.history_index = -1; - if ( cmd.match ( /^\.\/(.*)$/ )) + if ( cmd.match ( /^\.?\/(.*)$/ )) { file = this.expandPath ( RegExp.$1 ); + if ( cmd.match ( /^(\/.*)$/ )) + { + file = this.expandPath ( RegExp.$1 ); + } + for ( var i in this.files ) { if ( this.files[i]['path'] == file )