diff options
author | Case Duckworth | 2023-01-09 00:00:42 -0600 |
---|---|---|
committer | Case Duckworth | 2023-01-09 00:00:42 -0600 |
commit | 8ea80bd6d8f4661ef90ab6ad48a240aaee805bcf (patch) | |
tree | d830dfd1182b00fc211c641006c5c604228c65f7 | |
parent | Edit initialization template (diff) | |
download | vienna-8ea80bd6d8f4661ef90ab6ad48a240aaee805bcf.tar.gz vienna-8ea80bd6d8f4661ef90ab6ad48a240aaee805bcf.zip |
shellfix(): $$$ expands to \$$$
-rwxr-xr-x | vienna | 1 |
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 | "$@" |