"Cai Qian" <[EMAIL PROTECTED]> wrote:
> It suggests that "cat" has not seen EOF (004) generated by echo.
The character 004 is not EOF.
When typing at a terminal which is set to "cooked" mode, you use the
keystroke control-D to tell the terminal driver that it should send
EOF to the program readin
Hi,
On 5/26/06, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote:
On 2006-05-25, Cai Qian wrote:
> Hi,
>
> echo -e "hello \004world" | cat
>
> will print out
>
> hello world
As it should.
> echo -e "hello \004world" | cat > /dev/null
>
> will print out nothing
Of course: you sent it all t
On Thursday 25 May 2006 20:47, Cai Qian wrote:
> The problem is "cat" does not stop reading when see the EOF through the
> pipe.
how is this a bug in echo ? as pointed out by Chris Johnson, cat is doing the
right thing
-mike
pgpvLPsqPv2AM.pgp
Description: PGP signature
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"
On 2006-05-25, Cai Qian wrote:
> Hi,
>
> echo -e "hello \004world" | cat
>
> will print out
>
> hello world
As it should.
> echo -e "hello \004world" | cat > /dev/null
>
> will print out nothing
Of course: you sent it all to /dev/null.
> It suggests that "cat" has not seen EOF (004) gen
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 wi
Hi,
echo -e "hello \004world" | cat
will print out
hello world
echo -e "hello \004world" | cat > /dev/null
will print out nothing
It suggests that "cat" has not seen EOF (004) generated by echo.
Qian
___
Bug-bash mailing list
Bug-bash@gnu.org
ht