Thicket thicket
cambridge
REPOS 4

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

W07.2026 · 9–15 Febprojects

Merry now offers tab completion and history hints in its interactive shell, and a fix to cd ensures the working directory actually changes. Parse errors also report the file, position, and failing token, making debugging faster.

Features

  • Tab completion: Pressing Tab in interactive mode completes program names found in your PATH. This saves typing for long command names and helps discover available tools.

  • History hints: As you type, a matching earlier command appears in magenta. Pressing the right arrow key fills in that suggestion, so you can recall commands without scrolling through history.

  • Interactive-mode indicator: The $- variable (which lists the shell's current option letters) now includes i when the shell is running interactively. Scripts can check this to adjust behaviour for interactive versus batch use.

Fixes

  • Working directory: cd now changes the shell's actual working directory rather than only updating an internal path variable. Commands run after cd will find files relative to the new location as expected.

  • Parse error messages: Syntax errors now report the file name, position, and the token that caused the failure. This replaces a generic error message, so you can locate and correct the problem without guessing.

Proposals

  • passthru.shellPath: An open pull request proposes fixing how this variable resolves the shell's path. It has not been merged, so the current behaviour remains unchanged.