summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-22 11:51:21 -0500
committerCase Duckworth2022-08-22 11:51:21 -0500
commit68b0a061579b403afe568bb70f5e211dbebf02fa (patch)
treeb4b9bb182e9e1db9b7dc8f5d9b52400600b5e334
parentEscape shell constructions earlier (diff)
downloadht-68b0a061579b403afe568bb70f5e211dbebf02fa.tar.gz
ht-68b0a061579b403afe568bb70f5e211dbebf02fa.zip
Move ` escaping
-rwxr-xr-xht.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/ht.awk b/ht.awk index 59fa393..8edd800 100755 --- a/ht.awk +++ b/ht.awk
@@ -37,7 +37,6 @@ $0 ~ CONFIG["raw_delim"] {
37 gsub(/\$\$/, "$\a", $0) 37 gsub(/\$\$/, "$\a", $0)
38 gsub(/\$[^\a]/, "\\\\&", $0) 38 gsub(/\$[^\a]/, "\\\\&", $0)
39 gsub(/\$\a/, "$", $0) 39 gsub(/\$\a/, "$", $0)
40 gsub(/`/, "\\`", $0)
41} 40}
42 41
43RAW { 42RAW {
@@ -138,6 +137,7 @@ $0 ~ ("^" COMMENT_DELIM) {
138 $0 = templ 137 $0 = templ
139 } 138 }
140 } 139 }
140 gsub(/`/, "\\`", $0)
141 # Push to buffer 141 # Push to buffer
142 bufpush($0, sep) 142 bufpush($0, sep)
143} 143}