diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-27 08:35:22 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-27 09:48:43 -0400 |
| commit | 2b68dc13845fd7e499c99e79dae56421f5ef611f (patch) | |
| tree | 6c0950edfed4605a70e8d903acac50a177f3592b /bqn.js | |
| parent | 274ab64859f47f30dd0e5f79c35d4b483cc7ba5a (diff) | |
Fix Node REPL
Diffstat (limited to 'bqn.js')
| -rwxr-xr-x | bqn.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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', () => { |
