bug-bash
[Top][All Lists]
Advanced

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

Re: EOF does not work in echo


From: Mike Frysinger
Subject: Re: EOF does not work in echo
Date: Thu, 25 May 2006 19:35:35 -0400
User-agent: KMail/1.9.1

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

Attachment: pgpNTpwUBCh7C.pgp
Description: PGP signature


reply via email to

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