diff --git a/src/lib/eval.ml b/src/lib/eval.ml --- a/src/lib/eval.ml +++ b/src/lib/eval.ml @@ -2018,7 +2018,7 @@ | Some p -> let fp = Fpath.append cwd (Fpath.v p) in if Eio.Path.is_directory (ctx.fs / Fpath.to_string fp) then begin Unix.chdir (Fpath.to_string fp); - Exit.zero @@ S.set_cwd ctx.state fp + Exit.zero @@ S.set_cwd ctx.state (Fpath.normalize fp) end else Exit.nonzero_msg ~exit_code:1 ctx.state