diff --git a/genRuntimeSrc.bqn b/genRuntimeSrc.bqn index 2cde278a..6d57e4c6 100755 --- a/genRuntimeSrc.bqn +++ b/genRuntimeSrc.bqn @@ -1,4 +1,4 @@ -#!/usr/bin/env bqn +#!/usr/bin/env ./BQN args←•args "Usage: ./getRuntime.bqn path/to/mlochbaum/BQN"!1≤≠args path←⊑•args diff --git a/src/main.c b/src/main.c index 897f1511..d4854621 100644 --- a/src/main.c +++ b/src/main.c @@ -169,6 +169,7 @@ int main(int argc, char* argv[]) { } } if (startREPL) { + B replPath = m_str32(U"REPL"); gc_add(replPath); while (CATCH) { printf("Error: "); print(catchMessage); putchar('\n'); vm_pst(envCurr, envStart+envPrevHeight); @@ -178,7 +179,6 @@ int main(int argc, char* argv[]) { #endif gc_maybeGC(); } - B replPath = m_str32(U"REPL"); gc_add(replPath); while (true) { // exit by evaluating an empty expression char* ln = NULL; size_t gl = 0;