···16651665 Exit.zero initial_ctx
1666166616671667 and execute ctx ast = exec ctx ast
16681668- and run ctx ast = run' ~make_process_group:true ctx ast
16681668+16691669+ and run ?(make_process_group = true) ctx ast =
16701670+ run' ~make_process_group ctx ast
1669167116701672 and run' ?(make_process_group = true) ctx ast =
16711673 (* Make the shell its own process group *)
+2-1
src/lib/eval.mli
···4545 val sigint_set : ctx -> bool
4646 (** Has the signal SIGINT been set via a trap. *)
47474848- val run : ctx Exit.t -> Ast.t -> ctx Exit.t * Ast.t list
4848+ val run :
4949+ ?make_process_group:bool -> ctx Exit.t -> Ast.t -> ctx Exit.t * Ast.t list
4950 (** [run ctx ast] evaluates [ast] using the initial [ctx]. *)
50515152 (** {2 Private} *)
+1-1
src/lib/interactive.ml
···120120 | String (Some c) ->
121121 let ast = Ast.of_string (String.trim c) in
122122 Fmt.pr "\n%!";
123123- let ctx', _ast = Eval.run ctx ast in
123123+ let ctx', _ast = Eval.run ~make_process_group:false ctx ast in
124124 add_history c;
125125 H.save !h history;
126126 loop ctx'