aboutsummaryrefslogtreecommitdiff
path: root/bqn.js
diff options
context:
space:
mode:
Diffstat (limited to 'bqn.js')
-rwxr-xr-xbqn.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/bqn.js b/bqn.js
index 3ec00774..74744bf3 100755
--- a/bqn.js
+++ b/bqn.js
@@ -36,7 +36,7 @@ sysvals.fbytes = withres("•FBytes",fbytes);
sysvals.file = dynsys(state => {
let p = state.path;
- let res = getres(p);
+ let res = state.resolve;
let files = {
// Paths and parsing
path: p,
@@ -151,8 +151,8 @@ if (!module.parent) {
}
}
if (!has(arg0) || arg0==='-r') {
- let st = cl_state();
- let stdin = process.stdin, repl = sysvals.makerepl();
+ let stdin = process.stdin;
+ let repl = sysvals.rebqn(cl_state())(makens(["repl"],[str("loose")]));
let e = exec(s=>show(repl(str(s))));
stdin.on('end', () => { process.exit(); });
stdin.on('readable', () => {