Skip to content

Commit ee756a8

Browse files
committed
t9001: style modernisation phase #4
Two general shell script codingstyles. - No SP between redirection operator and its target - One SP on both sides of () in "name () {" that begins a shell function Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent acd72b5 commit ee756a8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

t/t9001-send-email.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test_expect_success $PREREQ 'Setup helper tool' '
3131
GIT_AUTHOR_NAME="A" git commit -a -m "Second."
3232
'
3333

34-
clean_fake_sendmail() {
34+
clean_fake_sendmail () {
3535
rm -f commandline* msgtxt*
3636
}
3737

@@ -49,9 +49,9 @@ test_no_confirm () {
4949
--to=nobody@example.com \
5050
--smtp-server="$(pwd)/fake.sendmail" \
5151
$@ \
52-
$patches > stdout &&
52+
$patches >stdout &&
5353
test_must_fail grep "Send this email" stdout &&
54-
> no_confirm_okay
54+
>no_confirm_okay
5555
}
5656

5757
# Exit immediately to prevent hang if a no-confirm test fails
@@ -365,7 +365,7 @@ test_expect_success $PREREQ 'Author From: in message body' '
365365
--to=nobody@example.com \
366366
--smtp-server="$(pwd)/fake.sendmail" \
367367
$patches &&
368-
sed "1,/^\$/d" < msgtxt1 > msgbody1 &&
368+
sed "1,/^\$/d" <msgtxt1 >msgbody1 &&
369369
grep "From: A <author@example.com>" msgbody1
370370
'
371371

@@ -376,7 +376,7 @@ test_expect_success $PREREQ 'Author From: not in message body' '
376376
--to=nobody@example.com \
377377
--smtp-server="$(pwd)/fake.sendmail" \
378378
$patches &&
379-
sed "1,/^\$/d" < msgtxt1 > msgbody1 &&
379+
sed "1,/^\$/d" <msgtxt1 >msgbody1 &&
380380
! grep "From: A <author@example.com>" msgbody1
381381
'
382382

@@ -790,7 +790,7 @@ test_confirm () {
790790
--from="Example <nobody@example.com>" \
791791
--to=nobody@example.com \
792792
--smtp-server="$(pwd)/fake.sendmail" \
793-
$@ $patches > stdout &&
793+
$@ $patches >stdout &&
794794
grep "Send this email" stdout
795795
}
796796

@@ -838,7 +838,7 @@ test_expect_success $PREREQ 'confirm detects EOF (inform assumes y)' '
838838
--from="Example <nobody@example.com>" \
839839
--to=nobody@example.com \
840840
--smtp-server="$(pwd)/fake.sendmail" \
841-
outdir/*.patch < /dev/null
841+
outdir/*.patch </dev/null
842842
ret="$?"
843843
git config sendemail.confirm ${CONFIRM:-never}
844844
test $ret = "0"
@@ -853,7 +853,7 @@ test_expect_success $PREREQ 'confirm detects EOF (auto causes failure)' '
853853
--from="Example <nobody@example.com>" \
854854
--to=nobody@example.com \
855855
--smtp-server="$(pwd)/fake.sendmail" \
856-
$patches < /dev/null
856+
$patches </dev/null
857857
ret="$?"
858858
git config sendemail.confirm ${CONFIRM:-never}
859859
test $ret = "0"
@@ -1034,7 +1034,7 @@ test_expect_success $PREREQ '--compose-encoding adds correct MIME for subject' '
10341034
'
10351035

10361036
test_expect_success $PREREQ 'detects ambiguous reference/file conflict' '
1037-
echo master > master &&
1037+
echo master >master &&
10381038
git add master &&
10391039
git commit -m"add master" &&
10401040
test_must_fail git send-email --dry-run master 2>errors &&
@@ -1403,7 +1403,7 @@ test_expect_success $PREREQ 'convert from quoted-printable to base64' '
14031403
'
14041404

14051405
test_expect_success $PREREQ 'setup expect' "
1406-
tr -d '\\015' | tr '%' '\\015' > email-using-crlf <<EOF
1406+
tr -d '\\015' | tr '%' '\\015' >email-using-crlf <<EOF
14071407
From fe6ecc66ece37198fe5db91fa2fc41d9f4fe5cc4 Mon Sep 17 00:00:00 2001
14081408
Message-Id: <bogus-message-id@example.com>
14091409
From: A U Thor <author@example.com>

0 commit comments

Comments
 (0)