bug-bash
[Top][All Lists]
Advanced

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

Re: Shell redirection success/failure isn't checked


From: Chet Ramey
Subject: Re: Shell redirection success/failure isn't checked
Date: Sun, 29 Aug 2004 17:00:13 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.2) Gecko/20040803

Jeff Connelly wrote:

Further research reveals that bash uses /bin/echo, but the other shell
has its own internal echo, which is why it prints the error.

What further research?  Bash does, in fact, use its own echo builtin
(try `type echo'), which returns failure when writes fail but does not
print an error message.

The bash echo actually does the writes and calls ferror(), returning
failure if ferror() returns non-zero.

Chet





reply via email to

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