From 2b68dc13845fd7e499c99e79dae56421f5ef611f Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 27 Aug 2021 08:35:22 -0400 Subject: Fix Node REPL --- bqn.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bqn.js') 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', () => { -- cgit v1.2.3