Thicket thicket
cambridge
REPOS 4

Projects covers Forester, Merry, xdge and ocaml-crockford.

W14.2026 · 30 Mar – 5 Aprprojects

Merry's msh shell now supports break and continue inside loops, and exec can launch a command with arguments instead of failing. Several fixes also correct how the shell handles whitespace, word splitting, and command lookup.

Features

  • Loop control: break and continue now work inside for, while, and until loops, and you can specify a nesting level to exit more than one loop at once. Scripts can skip an iteration or abort a loop from nested code without restructuring the surrounding logic.

  • Exec with arguments: exec now replaces the shell process with the named command and passes its arguments, instead of printing an error. Scripts that use exec to hand control to another program will now work as intended.

Compatibility

  • Command lookup: command resolution now consistently checks PATH and a cached lookup table across exec, type, and sourcing a script. This reduces false "command not found" errors when a script calls a command that was already resolved earlier in the session.

Fixes

  • Echo preserves spaces: echo no longer trims leading and trailing spaces from its arguments, so a string with intentional padding prints exactly as typed. This matters when scripts build formatted output or pass values that depend on surrounding whitespace.

  • Eval joins arguments: eval now joins its arguments with a single space rather than concatenating them directly, so a call like eval echo hello world produces "hello world" instead of "helloworld". Scripts that pass multi-word strings through eval will no longer get garbled output.

  • Word splitting in subshells: subshells and functions now initialise the word-splitting delimiters to the standard set of space, tab, and newline. Unquoted variables inside these contexts split into separate words as expected rather than being treated as a single token.