You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSV formula guard is not undone when a CSV baseline is read back #479
The CSV writer prefixes ' to record values that start with = + - @ \t \r (formula guard), but diff.Parse reads CSV baselines back as written. A TXT record starting with one of those characters is reported "changed" on every -diff-records run against a CSV baseline.
With a CSV -diff baseline and -diff-records (or subenum diff -records, or the MCP diff tool on a CSV file), every such name is reported changed and the run exits 4. Monitoring with -format csv gets a permanent false change, and previous_records show the stray quote.
Steps to reproduce
Zone with t TXT "=abc".
subenum -format csv -type TXT -o base.csv ...
subenum -diff base.csv -diff-records -type TXT ... on the unchanged zone reports t as changed.
Suggested fix
In Parse's CSV branch, strip one leading ' from row[2] when the next character is one of =+-@\t\r (exactly what csvSafe added). Add a write-then-Parse round-trip test.
Acceptance criteria
A CSV written by subenum and read back by diff.Parse gives the original values.
Activity