about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-01-09 00:00:42 -0600
committerCase Duckworth2023-01-09 00:00:42 -0600
commit8ea80bd6d8f4661ef90ab6ad48a240aaee805bcf (patch)
treed830dfd1182b00fc211c641006c5c604228c65f7
parentEdit initialization template (diff)
downloadvienna-8ea80bd6d8f4661ef90ab6ad48a240aaee805bcf.tar.gz
vienna-8ea80bd6d8f4661ef90ab6ad48a240aaee805bcf.zip
shellfix(): $$$ expands to \$$$
-rwxr-xr-xvienna1
1 files changed, 1 insertions, 0 deletions
diff --git a/vienna b/vienna index 8ab01ce..f6106ac 100755 --- a/vienna +++ b/vienna
@@ -328,6 +328,7 @@ shellfix() { # shellfix FILE...
328 # shellcheck disable=2016 328 # shellcheck disable=2016
329 sed -E \ 329 sed -E \
330 -e 's/`/\\`/g' \ 330 -e 's/`/\\`/g' \
331 -e 's/\$\$\$/\\&/g' \
331 -e 's/(^|[^\$])\$([^\$]|$)/\1\\$\2/g' \ 332 -e 's/(^|[^\$])\$([^\$]|$)/\1\\$\2/g' \
332 -e 's/\$\$/$/g' \ 333 -e 's/\$\$/$/g' \
333 "$@" 334 "$@"