Shells in OCaml
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Clear local state on pipeline exit

+6 -1
+1 -1
src/lib/eval.ml
··· 396 396 | FunctionDefinition (name, (body, _rdrs)) :: rest -> 397 397 let ctx = { ctx with functions = (name, body) :: ctx.functions } in 398 398 loop ctx job (pgid, None) rest 399 - | [] -> (ctx, job) 399 + | [] -> (clear_local_state ctx, job) 400 400 in 401 401 (* HACK: when running the pipeline, we need a process group to 402 402 put everything in. Eio's model of execution is nice, but we cannot
+5
test/simple.t
··· 50 50 FOO=abc 51 51 [1] 52 52 53 + $ sh -c "FOO=bar; env | grep FOO" 54 + [1] 55 + $ msh -c "FOO=bar; env | grep FOO" 56 + [1] 57 + 53 58 2. Pipelines with And|Or 54 59 55 60 2.1 Simple Or