Merry is a POSIX-compatible shell. Recent commits fix six compatibility issues in quoting, pipes, arithmetic, signal handling, and subshells, and speed up command-path resolution.
Fixes
-
Quoting: Double-quoted strings now unescape backslash sequences to match standard shell behaviour, so escaped quotes and backslashes produce the expected characters. Scripts that rely on POSIX quoting rules will no longer see unexpected substitutions. 77c2b3d8
-
Pipes: Each stage of a pipeline now closes its read end when finished, preventing scripts from accumulating open file handles. Long-running scripts that chain many piped commands will no longer leak resources between stages. e640f4ad
-
Arithmetic: The shell's arithmetic expression syntax now parses correctly, and any remaining parse errors report the line and column where the problem occurs. Scripts that use arithmetic for counters or index calculations will no longer fail on valid expressions. 17b2f1b7
-
Signal and trap handling: Trap handlers now queue their actions and run them at safe points in the shell's event loop, so traps fire reliably instead of being lost. Merry also recognises the pipe-broken signal (sent when a process writes to a closed pipe) and passes the current execution context to EXIT handlers, matching the standard environment rule. 605a9466 f18ac7c7
-
Subshells: Running exec inside a subshell now spawns a child process rather than replacing the parent shell, so the parent script continues after the subshell ends. Scripts that use subshells to isolate a command will no longer lose the parent process. c0115a10
-
Command lookup: Merry now caches the search path for external commands and streamlines environment and pipeline handling, reducing the time spent resolving each command. Scripts that invoke many external commands in sequence will spend less time on path resolution. c552593f 91fc4233