[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarify cases of implicit and explicit line continuation

From: Shriramana Sharma
Subject: Clarify cases of implicit and explicit line continuation
Date: Fri, 1 Jun 2018 10:58:29 +0530

Hello. See 

Roughly put, wherever lines terminating with a particular token are
syntactically valid, they are taken as complete, and an explicit \ is
required to continue the line, but lines ending with && || or I and
lines where an array definition has been started with =( but not
closed with a ) implicitly continue to the next physical line. This is
not documented under the manual section describing explicit line


but the similar specification for Python is properly and clearly
documented in the Python docs:


The StackExchange conversation mention of "In POSIX, it's specified
via the grammar rules" seems to indicate that though this behaviour is
not documented, it is the expected behaviour as per POSIX.

Thus I request that the Bash docs clearly document this behaviour.

Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा 𑀰𑁆𑀭𑀻𑀭𑀫𑀡𑀰𑀭𑁆𑀫𑀸

reply via email to

[Prev in Thread] Current Thread [Next in Thread]