summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-10-14 22:03:28 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-10-14 22:03:28 -0400
commit60951ccbeedc47a1b21af215dfc151beb0b4f268 (patch)
tree45456609b1010f485612a18b417868ebf8fa498d /bin
parent607b44e221fc2e3b009bfe92dc12d51ce11fd2da (diff)
escape single quote in box, fix #880
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 52c46cc..2ab0a68 100755
--- a/bin/mw
+++ b/bin/mw
@@ -229,7 +229,7 @@ getboxes() { if [ -n "${force+x}" ] ; then
idnum=$((idnum + 1))
[ "$idnum" -eq "$x" ] || break
done
- toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )"
+ toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/;s/'/\\\'/g" | paste -sd ' ' - )"
}
finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"