mirror of
https://github.com/janet-lang/janet
synced 2025-06-13 12:04:12 +00:00
Fix behavior of -q flag.
Don't surpress errors at the repl.
This commit is contained in:
parent
41894eb285
commit
80f19a0ab7
@ -2697,10 +2697,9 @@
|
|||||||
(def getter (if *raw-stdin* getstdin getline))
|
(def getter (if *raw-stdin* getstdin getline))
|
||||||
(defn getchunk [buf p]
|
(defn getchunk [buf p]
|
||||||
(getter (getprompt p) buf env))
|
(getter (getprompt p) buf env))
|
||||||
(def onsig (if *quiet* (fn [x &] x) nil))
|
|
||||||
(setdyn :pretty-format (if *colorize* "%.20Q" "%.20q"))
|
(setdyn :pretty-format (if *colorize* "%.20Q" "%.20q"))
|
||||||
(setdyn :err-color (if *colorize* true))
|
(setdyn :err-color (if *colorize* true))
|
||||||
(repl getchunk onsig env)))
|
(repl getchunk nil env)))
|
||||||
|
|
||||||
(put _env 'no-side-effects nil)
|
(put _env 'no-side-effects nil)
|
||||||
(put _env 'is-safe-def nil)
|
(put _env 'is-safe-def nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user