From: Eric Sunshine Date: Mon, 04 Apr 2016 17:30:36 GMT Subject: Re: [PATCH v12 1/5] t0040-test-parse-options.sh: fix style issues Message-ID: In-Reply-To: On Mon, Apr 4, 2016 at 8:45 AM, Pranit Bauva wrote: > Okay I will do the change. I was previously unaware about the use of > '\' before EOF. I googled it now. But I am still confused about its > use in this scenario. Upto what I understood, it is used where you > want to expand a variable, substitute a command, arithmethic > expansion. The use of '\' in the tests I have changed in v12 wrt 11 is > understood by me as you want to remove the use of escape sequences > which is justified. But this seems a bit vague. Is it some convention > in git? Both 'EOF' and \EOF suppress interpolation and other transformations in the heredoc content which would otherwise occur with plain EOF. The 'EOF' form is well documented; \EOF not so much, but is used heavily in git test scripts. So: x=flormp echo <