···10881088 match path with
10891089 | Some p ->
10901090 let fp = Fpath.append cwd (Fpath.v p) in
10911091- if Eio.Path.is_directory (ctx.fs / Fpath.to_string fp) then
10911091+ if Eio.Path.is_directory (ctx.fs / Fpath.to_string fp) then begin
10921092+ Unix.chdir (Fpath.to_string fp);
10921093 Exit.zero @@ S.set_cwd ctx.state fp
10941094+ end
10931095 else
10941096 Exit.nonzero_msg ~exit_code:1 ctx.state
10951097 "cd: not a directory: %a" Fpath.pp fp