Thicket thicket
cambridge
REPOS 4

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

March 2026projects

Merry, a POSIX-compatible shell, has gained the scripting constructs that most shell scripts rely on. Across two reporting cycles it picked up a return statement for exiting a function with a specific status code, a local built-in that keeps variables scoped to the current function, a read built-in for capturing a line of input into named variables, and working continue and return keywords for controlling loop and function flow. Case patterns now expand variables, so a pattern can match against the value of a variable rather than a literal string. Together these changes make it practical to write shell functions and while-read loops in Merry. Commit Commit

Several correctness fixes address behaviours that would have caused scripts to misbehave. A path starting with a tilde and slash, such as ~/documents, now expands to the home directory instead of being passed through as a literal string. Unquoted words are now split on the shell's field-separator setting (defaulting to space, tab, and newline) rather than only on spaces, so scripts that set a custom delimiter will see their arguments split as intended. Signal handling in trap also now recognises numeric signal IDs alongside named ones. Commit Commit

One practical note for anyone building Merry from source: it now uses the external globlon library for filename pattern matching instead of a bundled implementation, so that package needs to be available at build time. Commit

W13.2026 · 23–29 Marprojects

Merry now supports the scripting constructs most shell scripts rely on, including reading input line by line and controlling loop and function flow. Two long-standing bugs in path expansion and word splitting are also resolved.

Features

Reading input: Merry now includes a read built-in that captures a line from standard input into named variables, making while-read loops possible for processing files or interactive prompts. Backslash escape sequences are not yet interpreted, so a trailing backslash in input will be stored literally. Commit

Loop and function control: The continue and return keywords now work as expected, so a continue statement skips to the next iteration of a loop and return exits the current function. Scripts that previously had no way to break out of a function or skip an iteration can now express that logic. Commit

Case patterns with variables: Pattern words in case statements now undergo variable expansion, so a pattern like $2 in a case branch matches against the expanded value rather than the literal dollar sign. This makes conditional dispatch on variable content straightforward. Commit

Fixes

Tilde expansion: A path beginning with a tilde followed by a slash, such as ~/documents, now expands to the user's home directory instead of being passed through as a literal string. Scripts that relied on tilde shortcuts for home-directory paths will now resolve them correctly. Commit

Field splitting: Unquoted words are now split on the IFS variable (the shell's field-separator setting, defaulting to space, tab, and newline) rather than only on spaces. Scripts that set IFS to a custom delimiter will now see their arguments split as intended. Commit

Compatibility

Globbing dependency: Merry now uses the external globlon library for filename pattern matching instead of a bundled implementation, so building Merry requires that package to be available. Anyone compiling Merry from source should ensure globlon is installed. Commit