[Top][All Lists]

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

Re: Clarify cases of implicit and explicit line continuation

From: Chet Ramey
Subject: Re: Clarify cases of implicit and explicit line continuation
Date: Tue, 5 Jun 2018 09:17:21 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 6/4/18 10:20 PM, Shriramana Sharma wrote:
> On Fri, Jun 1, 2018 at 6:18 PM, Chet Ramey <address@hidden> wrote:
>> The general rule is simple: bash reads input a line at a time, feeding
>> each line to the parser, until it has enough input for a complete
>> command. If it doesn't have enough to complete a command, it will read
>> additional lines. If a newline would complete a command, you need to
>> quote it to prevent it being interpreted as such.
> Yes that is all understood. All I'm requesting for is for this
> behaviour to be *documented* in the manpage.

I understand. I don't think it adds much to the documentation to describe
in such basic terms the fundamental operation of the shell: that it reads
lines from its input source until it assembles a complete command, then
executes it. This is just what shells do.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

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