Thicket thicket
cambridge
REPOS 4

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

W04.2026 · 19–25 Janprojects

Merry gains case statements and while/until loops, giving scripts real branching and repetition. Arithmetic expansion and interactive history recall round out the additions.

Features

  • Case statements: Merry now runs case commands, matching each pattern against a value and executing the first matching branch. This lets scripts branch on multiple values without nested if chains. See 8876f628.

  • While and until loops: Merry supports while and until loops, repeating the body while (or until) the condition holds. This covers the common pattern of iterating until a command succeeds or a counter reaches zero. See 8bf5f9ff and 4e923ed3.

  • Arithmetic expansion: The $(( )) syntax now evaluates expressions with operators, compound assignment, the ternary ? :, and hex/octal literals. Nesting a second $(( inside an outer $(( is not yet supported. See 86ab5754.

  • History recall: The interactive shell provides prefix-based history recall and drops duplicate entries. You can type the first few characters of a previous command and cycle through matches. See f5dea97e and cd9ec950.

Fixes

  • command built-in: The command built-in now runs shell built-ins (for example, command pwd) instead of only external programs. Scripts that relied on command to invoke built-ins will work as expected. See 236b7b12.

  • cd to a non-directory: cd to a path that is not a directory now fails with a clear error message instead of silently succeeding. This prevents scripts from continuing in the wrong working directory after a failed cd. See f6bce395.