aboutsummaryrefslogtreecommitdiff
path: root/bqn.js
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-27 08:35:22 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-08-27 09:48:43 -0400
commit2b68dc13845fd7e499c99e79dae56421f5ef611f (patch)
tree6c0950edfed4605a70e8d903acac50a177f3592b /bqn.js
parent274ab64859f47f30dd0e5f79c35d4b483cc7ba5a (diff)
Fix Node REPL
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', () => {