szn

Bug 119 — cfg.zig — parseIfShell doesn’t handle escaped quotes

119. cfg.zig — parseIfShell doesn’t handle escaped quotes

File: src/cfg.zig:359–366 Severity: MEDIUM Status: ✅ FIXED — added escape-aware findUnescapedQuote and unescapeQuoted helpers. \" sequences inside quoted strings are properly handled. Tests added.

const second_q = std.mem.indexOfScalarPos(u8, args, first_q + 1, '"') orelse ...;

Unlike stripInlineComment which tracks \\ escapes, this function treats any " as a string boundary. Input if-shell "test \"foo\"" "cmd" parses incorrectly.