summary refs log tree commit diff stats
path: root/ht.awk
diff options
context:
space:
mode:
Diffstat (limited to 'ht.awk')
-rwxr-xr-xht.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/ht.awk b/ht.awk index 8edd800..2d96620 100755 --- a/ht.awk +++ b/ht.awk
@@ -33,7 +33,6 @@ $0 ~ CONFIG["raw_delim"] {
33 33
34# Shell expansion escape hatch 34# Shell expansion escape hatch
35{ 35{
36 gsub(/\\/, "\\\\", $0)
37 gsub(/\$\$/, "$\a", $0) 36 gsub(/\$\$/, "$\a", $0)
38 gsub(/\$[^\a]/, "\\\\&", $0) 37 gsub(/\$[^\a]/, "\\\\&", $0)
39 gsub(/\$\a/, "$", $0) 38 gsub(/\$\a/, "$", $0)
@@ -137,6 +136,8 @@ $0 ~ ("^" COMMENT_DELIM) {
137 $0 = templ 136 $0 = templ
138 } 137 }
139 } 138 }
139 # Escape backslash and `
140 gsub(/\\/, "\\\\", $0)
140 gsub(/`/, "\\`", $0) 141 gsub(/`/, "\\`", $0)
141 # Push to buffer 142 # Push to buffer
142 bufpush($0, sep) 143 bufpush($0, sep)