On Fri, 24 Dec 2010 13:20:55 +0500 Коренберг Марк <m...@ideco-software.ru> wrote:
> GOOD CASE: > mma...@mmarkk-work:/tmp$ echo aaa > /tmp/test1 > mma...@mmarkk-work:/tmp$ read x < /tmp/test1 && echo success > success > mma...@mmarkk-work:/tmp$ echo $x > aaa > mma...@mmarkk-work:/tmp$ > > BUGGY CASE: > mma...@mmarkk-work:/tmp$ echo -n bbb > /tmp/test2 > mma...@mmarkk-work:/tmp$ read y < /tmp/test2 && echo success > mma...@mmarkk-work:/tmp$ echo $y > bbb > mma...@mmarkk-work:/tmp$ > > So, if EOF detected but something is read successfully, please do not > report error ! > > > The "dialog" command when writes to --output-fd does not append newline. > so > read result < resultfile || return 1 > will fail, but should not (by correct logick). Please see http://lists.gnu.org/archive/html/bug-bash/2010-12/msg00011.html -- D.