Thicket thicket
cambridge
REPOS 1

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

W05.2026 · 26 Jan – 1 Febpatrick.sirref.org/merry

Features

  • Merry echo and readonly: adds the echo built-in for printing text and the readonly built-in for marking variables immutable. readonly -p lists all readonly variables. (972d29c1)

  • Merry set options: adds noglob (disable filename expansion) and nounset (error on unset variables) via set -o or the short flags -f and -u. (54947c37)

  • Merry compound-command redirections: output redirections now apply to compound commands such as for loops, so for i in a b; do echo $i; done > out.txt writes to a file. (08b19606)

  • Merry >| clobber operator: the >| redirection now forces overwriting an existing file even when noclobber is set, matching POSIX behaviour. (08b19606)

  • Merry built-in redirections: file-descriptor redirections (e.g. echo hello 789>out.txt >&789) now work with built-in commands, not just external programs. (8933bf5f)

Fixes

  • Merry multi-digit positional parameters: the lexer now recognises $10, $11, etc. Previously only single-digit positional parameters were parsed. (02dae819)

  • Merry nested arithmetic expressions: $(( )) expressions containing inner $(( )) (e.g. $(( ((j+=6*i)==0x2A)>0 ? 14 : 15 ))) now parse correctly. (0722a090)

  • Merry pipeline process groups: removes the background sleep process used to establish a process group, replacing it with a promise-based delay. This eliminates race conditions when attaching pipeline members to the group. (cd369d9a)