CodingGuidelines: describe "export VAR=VAL" rule
commit7e3a9c23d670347454c6b95e3e6448c9d77fbdc4
authorJunio C Hamano <gitster@pobox.com>
Sat, 6 Apr 2024 00:08:57 +0000 (5 17:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Apr 2024 05:48:12 +0000 (5 22:48 -0700)
tree21a412a04d64ca48be41e83679dcb8f03458531c
parent19981daefd7c147444462739375462b49412ce33
CodingGuidelines: describe "export VAR=VAL" rule

https://lore.kernel.org/git/201307081121.22769.tboegi@web.de/
resulted in 9968ffff (test-lint: detect 'export FOO=bar',
2013-07-08) to add a rule to t/check-non-portable-shell.pl script to
reject

export VAR=VAL

and suggest us to instead write it as two statements, i.e.,

VAR=VAL
export VAR

This however was not spelled out in the CodingGuidelines document.

We may want to re-evaluate the rule since it is from ages ago, but
for now, let's make the written rule and what the automation
enforces consistent.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/CodingGuidelines