Merry, a shell, now supports redirecting the output of grouped commands such as for loops directly to a file, and Forester, an OCaml HTML renderer, produces slightly cleaner markup by dropping a redundant namespace attribute.
Features
-
Merry compound-command redirection: Output redirection now applies to grouped commands like for loops, so a loop that prints several lines can write them all to a single file in one step. Previously, only single commands could be redirected this way.
-
Merry echo and readonly: A new echo built-in prints text to the terminal, and a new readonly command marks a variable so it cannot be changed later. Running readonly with a listing option shows all locked variables at once.
-
Merry set options: The set command now accepts options to disable filename expansion and to raise an error when a script references a variable that was never assigned. These give script authors tighter control over how the shell interprets their code.
Fixes
-
Merry multi-digit positional parameters: Scripts that reference the tenth or later argument passed to a function now parse correctly. Earlier versions recognised only single-digit argument numbers, so scripts with ten or more parameters would fail.
-
Forester HTML output: Generated pages no longer include a redundant XML namespace attribute on elements. The visual appearance of rendered pages is unchanged, but the underlying markup is slightly smaller.
Compatibility
- ocaml-crockford build requirement: ocaml-crockford now needs dune 3.21 or later to build, up from 3.18. Developers using an older dune version must upgrade their build tool before compiling this library.