diff --git a/clite/core.js b/clite/core.js index e622620..c631106 100644 --- a/clite/core.js +++ b/clite/core.js @@ -1345,10 +1345,8 @@ clite.shell = { return; }else{ var path = clite.shell.resolvePath(args[1]); - var fd = clite.io.open(path,false); - if (!fd) + if (!path) return; - clite.io.close(fd); io.write(args[1]+' is '+path); } }, @@ -1359,10 +1357,8 @@ clite.shell = { io.write(args[1]+' is a shell builtin'); }else{ var path = clite.shell.resolvePath(args[1]); - var fd = clite.io.open(path,false); - if (!fd) + if (!path) return; - clite.io.close(fd); io.write(args[1]+' is '+path); } },