Thicket thicket
cambridge
REPOS 4

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

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