From: Ian Jackson Date: Sat, 28 Dec 2019 00:28:03 +0000 (+0000) Subject: Error handling: Trim the `bad escape' message.e X-Git-Tag: subdirmk/0.3~53 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=70fe981f4fa66e0590f867519d5cb02c3a31dbf4 Error handling: Trim the `bad escape' message.e Do not print the whole line, only the next 5 chars (say) - and, also, not any newlines. Signed-off-by: Ian Jackson --- diff --git a/generate b/generate index 209a1f3..62e915f 100755 --- a/generate +++ b/generate @@ -296,7 +296,8 @@ sub process_input_mk ($$$$) { od $_; $_ = ''; } else { - err "bad &-escape \`$$esclitr$_'"; + m{^.{0,5}}; + err "bad &-escape \`$$esclitr$&'"; } } if (defined $buffering_output) {