Thicket thicket
cambridge
REPOS 4

W13.2026 · 23–29 MarAll

Merry now supports reading lines from standard input into variables and recognises loop-control keywords, making it more practical for writing shell scripts. Building Merry also requires the external globlon package for filename pattern matching.

Features

  • Input reading: A new read built-in lets a script capture a line from standard input into named variables, enabling a while-read loop to process input line by line. Backslash escape sequences are not yet handled, so escaped characters in the input pass through literally. Commit

  • Loop control: The shell now recognises continue and return, so a script can skip to the next iteration of a loop or exit a function early. These are non-POSIX extensions, so scripts that rely on them will not port to strictly POSIX-compliant shells. Commit

  • Case pattern expansion: Pattern words in case statements now undergo variable expansion, so a pattern that references a variable matches against the variable's value rather than the literal text of the variable name. Commit

Fixes

  • Tilde expansion: A path beginning with a tilde and slash, such as ~/documents, now expands to the user's home directory instead of being treated as a literal filename. Commit

  • Field splitting: Unquoted words are now split on the IFS variable (the shell's internal field separator, defaulting to space, tab, and newline) rather than only on spaces, so scripts that set a custom separator will behave as expected. Commit

Compatibility

  • Globlon dependency: Filename pattern matching now uses the external globlon library in place of a bundled implementation, so building Merry requires that package to be installed. Commit