From: Eric Sunshine Date: Sun, 03 Apr 2016 21:00:22 GMT Subject: Re: [PATCH v12 1/5] t0040-test-parse-options.sh: fix style issues Message-ID: In-Reply-To: <01020153d952bd99-d3812bd6-d189-4780-ab48-f015696e9cf0-000000@eu-west-1.amazonses.com> On Sat, Apr 2, 2016 at 7:33 PM, Pranit Bauva wrote: > Signed-off-by: Pranit Bauva > --- > diff --git a/t/t0040-parse-options.sh b/t/t0040-parse-options.sh > @@ -7,7 +7,7 @@ test_description='our own option parser' > > . ./test-lib.sh > > -cat > expect << EOF > +cat >expect < usage: test-parse-options > --yes get a boolean It would be better to use <<\EOF for this one to make it clear that no interpolation is desired in the heredoc. > @@ -156,7 +156,7 @@ test_expect_success 'OPT_MAGNITUDE() 3giga' ' > check magnitude: 3221225472 -m 3g > ' > > -cat > expect << EOF > +cat >expect < boolean: 2 > integer: 1729 > magnitude: 16384 > @@ -310,12 +310,12 @@ arg 00: --quux > EOF > > test_expect_success 'keep some options as arguments' ' > - test-parse-options --quux > output 2> output.err && > + test-parse-options --quux >output 2>output.err && > test_must_be_empty output.err && > - test_cmp expect output > + test_cmp expect output Okay, this is a whitespace change (spaces -> tab). > ' > @@ -460,7 +460,7 @@ test_expect_success 'negation of OPT_NONEG flags is not ambiguous' ' > -cat >>expect <<'EOF' > +cat >>expect < list: foo > list: bar > list: baz