The problem is "cat" does not stop reading when see the EOF through the pipe.

echo -e "hello \004world" | cat > log

you cat still see the Control-D in the log.

Qian

On 5/26/06, Mike Frysinger <[EMAIL PROTECTED]> wrote:
On Thursday 25 May 2006 18:56, Cai Qian wrote:
> echo -e "hello \004world" | cat > /dev/null
>
> will print out nothing
>
> It suggests that "cat" has not seen EOF (004) generated by echo.

you piped the output to /dev/null ... how does that suggest anything ?

looks to me like you're evaluating with the wrong tools ... do something like:
echo -e "hello \004world" > foo
hexedit foo
and you'll see that echo is writing out the 0x04 just fine
-mike





_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to