Re: [PATCHv3 15/16] Add missing &&'s throughout the testsuite
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 25, 2010, 19:38 UTC
- Message-ID
- <AANLkTi=5_vAu=X0Rg9WeOko1DrYsF6dc=FeHGfUHsUzd@mail.gmail.com>
- In-Reply-To
- <1285441627-28233-16-git-send-email-newren@gmail.com>
On Sat, Sep 25, 2010 at 19:07, Elijah Newren <newren@gmail.com> wrote:
Show 18 quoted lines
> + cat <<EOF >.gitattributes > +[attr]notest !test > +f test=f > +a/i test=a/i > +onoff test -test > +offon -test test > +no notest > +EOF && > + cat <<EOF >a/.gitattributes > +g test=a/g > +b/g test=a/b/g > +EOF && > + cat <<EOF >a/b/.gitattributes > +h test=a/b/h > +d/* test=a/b/d/* > +d/yes notest > +EOF > '
Why is the && at the end of the EOF, on my system with dash:
$ cat /tmp/meh.sh
#!/bin/sh cat <<EOF >/tmp/file
foo
bar
EOF &&
cat <<EOF >>/tmp/file
foo
bar
EOF $ /bin/dash /tmp/meh.sh ; cat /tmp/file
foo
bar
EOF &&
cat <<EOF >>/tmp/file
foo
barThe && should be directly after /tmp/file, no?