bug-bash
[Top][All Lists]
Advanced

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

Re: Trailing spaces confuse here document delimiter matching


From: Chet Ramey
Subject: Re: Trailing spaces confuse here document delimiter matching
Date: Thu, 1 Feb 2001 13:28:33 -0500

> http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=25422
> 
> Is this behavior *really* posix conformant?

Yes.

POSIX says that here-document processing ``continues until there is a
line containing only the delimiter, with no trailing <blank>s.''

The way I read this, bash cannot `ignore trailing spaces completely'
as the poster suggests.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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