Thicket thicket
cambridge
REPOS 4

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

W04.2026 · 19–25 Janpatrick.sirref.org/merry

Features

  • Merry case: runs case compound commands, matching each pattern against the value and executing the first matching branch. See 8876f628.
  • Merry while/until: supports while and until loops, repeating the body while (or until) the condition holds. See 8bf5f9ff and 4e923ed3.
  • Merry arithmetic $(( )): evaluates arithmetic expressions with +, -, *, /, %, <, >, ==, compound assignment (+=, -=, etc.), the ternary ? :, and hex/octal literals. See 86ab5754.
  • Merry interactive history: the interactive shell now offers prefix-based history recall and drops duplicate entries. See f5dea97e and cd9ec950.

Fixes

  • Merry command: the command built-in now runs ordinary shell built-ins (e.g. command pwd) instead of only external programs. See 236b7b12.
  • Merry cd: cd to a non-directory now fails with cd: not a directory: <path> instead of silently succeeding. See f6bce395.

Compatibility

  • Merry Morbig parser: the vendored Morbig prelexer now recognises $(( ... )) arithmetic expressions, including nested $(( inside the expression. See 8bf5f9ff.

Note: the 86ab5754 commit message states the parser is still broken for double left parens inside the expression (e.g. $(( ((1 + 1) * 4) ))); treat that case as a known limitation.