From: Ian Jackson Date: Sat, 28 Dec 2019 12:17:14 +0000 (+0000) Subject: generate: Fix { } in &${ to actually output the { } X-Git-Tag: v0.6.0~249^2~39 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=commitdiff_plain;h=9307fbe53d53ae3deacb391d0b5f3c552ace0a89 generate: Fix { } in &${ to actually output the { } Signed-off-by: Ian Jackson --- diff --git a/generate b/generate index 4014471..cfb6642 100755 --- a/generate +++ b/generate @@ -255,12 +255,14 @@ sub process_input_mk ($$$$) { : s{^(.*?)($esc)}{}) { od $_; last; } od $1; if ($2 eq '{') { + od $2; $ddbl++; next; } elsif ($2 eq '}') { + od $2; next if --$ddbl; $pop_nest->('eval'); - od '}}'; + od '}'; next; } if (s{^\\$esc}{}) { od "$$esclitr" }