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 )