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 includesiwhen the shell is running interactively. Scripts can check this to adjust behaviour for interactive versus batch use.
Fixes
-
Working directory:
cdnow changes the shell's actual working directory rather than only updating an internal path variable. Commands run aftercdwill 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.