Re: Bash error message for unterminated heredoc is unhelpful.

2008-07-02 Thread Chet Ramey
Richard Neill wrote: Chet Ramey wrote: 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 o

Re: bash unresponsive after Ctrl-Z interrupts a backquoted command

2008-07-02 Thread Chet Ramey
Bruno Haible wrote: Hi, This command takes about 2 seconds to complete (on a slow machine; you can make it a triple loop for a faster machine): foo=`rm -f empty; touch empty; \ for a in 0 1 2 3 4 5 6 7 8 9 ; do \ for b in 0 1 2 3 4 5 6 7 8 9 ; do \ echo g$a$b | cat; \