Hi,

What a coincidence, I just stumbled upon another issue. I don't have fix
for this though ...

The test script:

$ cat c
#!/bin/ksh

trap 'exit' EXIT

(
        yes | while read A; do
                echo "$A"
                STDERR=$(</dev/null)
        done
)

It should write infinite number of characters 'y'. But in reality it only
writes one 'y' and ten empty lines only.

Also if you run the script as

$ ./c | head

It hangs. I don't know whether the two things (not reading and hanging) are
just a single issue or two different ones.

I can reproduce this on both linux and solaris. On linux the ksh says

$ echo $KSH_VERSION
Version AJM 93u+ 2012-08-01

On Solaris
Version JM 93u 2011-02-08

I'm just having a bad luck lately I guess ...

Cheers
-- 
        Vlad
_______________________________________________
ast-developers mailing list
ast-developers@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to