bug-bash
[Top][All Lists]
Advanced

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

Re: Bash error message for unterminated heredoc is unhelpful.


From: Chet Ramey
Subject: Re: Bash error message for unterminated heredoc is unhelpful.
Date: Sat, 28 Jun 2008 22:36:56 -0400
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Richard Neill wrote:
Dear All,

In some cases, bash gives exceptionally unhelpful error messages, of the
sort "Unexpected end of file". This is next-to-useless as a debugging
aid, since there is no way to find out where the error really lies.

For better or worse, bash allows end-of-file to delimit a here document.
That is historical sh behavior.

The end-of-file syntax error message comes when the shell tries to read
the token following the here document.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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