Re: EOF does not work in echo

2006-05-25 Thread Paul Jarc
"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

Re: EOF does not work in echo

2006-05-25 Thread Cai Qian
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

Re: EOF does not work in echo

2006-05-25 Thread Mike Frysinger
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

Re: EOF does not work in echo

2006-05-25 Thread Cai Qian
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"

Re: EOF does not work in echo

2006-05-25 Thread Chris F.A. Johnson
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

Re: EOF does not work in echo

2006-05-25 Thread Mike Frysinger
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

EOF does not work in echo

2006-05-25 Thread Cai Qian
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

Translations of bash?

2006-05-25 Thread Anton Zinoviev
Hi! In the sources of bash 3.1 I couldn't find any translations of bash and the last version of the pot file submitted to the Translation Project[*] is bash-2.0.pot. Because of that I'd like to ask the following questions: 1. Do you accept translations for the future version of bash? 2. I