# check -version
case `repl -v` in
repl\ --*) ;;
- * ) printf "$0: repl -v generated unexpected output\n" >&2
- failed=`expr ${failed:-0} + 1`;;
+ * ) printf '%s: repl -v generated unexpected output\n' "$0" >&2
+ failed=`expr ${failed:-0} + 1`;;
esac
# check unknown switch
run_test "repl" 'repl: no cur message'
-printf "Local-Mailbox: mymailbox@localhost%s\n" >> $MH
+printf 'Local-Mailbox: mymailbox@localhost\n' >> $MH
# check -cc me
cat >$expected <<EOF
cc: mymailbox@localhost
Fcc: +outbox
Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
Comments: In-reply-to Test1 <test1@example.com>
message dated "Fri, 29 Sep 2006 00:00:00."
--------
cc:
Fcc: +outbox
Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
Comments: In-reply-to Test1 <test1@example.com>
message dated "Fri, 29 Sep 2006 00:00:00."
--------
# check -cc me with Local- and Alternate-Mailbox addtions, Bug #36635:
# -nocc me doesn't account for Alternate-Mailboxes.
-printf "Alternate-Mailboxes: user@example.com\n" >> $MH
+printf 'Alternate-Mailboxes: user@example.com\n' >> $MH
cat >$expected <<EOF
From: mymailbox@localhost
cc: mymailbox@localhost
Fcc: +outbox
Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
Comments: In-reply-to Test1 <test1@example.com>
message dated "Fri, 29 Sep 2006 00:00:00."
--------
cc:
Fcc: +outbox
Subject: Re: Testing message 1
+In-reply-to: 1@test.nmh
+References: 1@test.nmh
Comments: In-reply-to Test1 <test1@example.com>
message dated "Fri, 29 Sep 2006 00:00:00."
--------