On Sun, Sep 13, 2015 at 8:46 AM, Alessandro DE LAURENZIS
<[email protected]> wrote:
> The following patch would strip leading blank characters (instead of
> tabs only) from the lines in the document when <<- redirection is
> used (and should be useful when indentation is done with spaces):

Nope.  The just-strip-tabs behavior is straight from the standard.  To
quote SUSv4 XCU section 2.7.4 paragraph 5:
    If the redirection symbol is "<<-", all leading <tab> characters
shall be stripped from input lines
    and the line containing the trailing delimiter. If more than one
"<<" or "<<-" operator is
    specified on a line, the here-document associated with the first
operator shall be supplied first
    by the application and shall be read first by the shell.


Philip Guenther

Reply via email to