summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-08-09 20:52:19 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-08-09 20:52:19 -0400
commit8239a7d5ca6807d395f787c8c940a08301eb61d7 (patch)
tree853fea90c9d8243c9ee2256c9c37553623fcd575
parentfdba98af8db56bf5f2524e28609a88b4f30ebd6b (diff)
remove bashism, fix #752
-rwxr-xr-xbin/mw5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/mw b/bin/mw
index 2e38cde..41977b1 100755
--- a/bin/mw
+++ b/bin/mw
@@ -182,7 +182,7 @@ askinfo() { \
[ -z "$fulladdr" ] && echo "Give the full email address to add:" &&
read -r fulladdr
while ! echo "$fulladdr" | grep -qE "^.+@.+\.[A-Za-z]+$"; do
- echo "\`$fulladdr\` is not a valid email address. Please retype the address:"
+ echo "$fulladdr is not a valid email address. Please retype the address:"
read -r fulladdr
done
getaccounts; echo "$accounts" | grep -q "\s$fulladdr$" 2>/dev/null &&
@@ -228,7 +228,8 @@ getboxes() { if [ -n "${force+x}" ] ; then
[ "$type" = "pop" ] && mailboxes="INBOX"
getaccounts; for x in $(seq 1 9); do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done
toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )"
- IFS=$'\n'
+ IFS='
+'
for x in $mailboxes; do
case "$x" in
*[Ss][Ee][Nn][Tt]*) setBox record "$x"; formatShortcut s sent "$x" ;;