Hi,

we've found a bug in ksh that causes unexpected text appearing in the output. 
When there's buffered output, buffer is not purged after sigpipe which causes 
output to be prepended to next output.

Reproducer:

create ~/ksh/repro.sh file with content:
#!/bin/ksh

killparent()
{
        sleep 1
        /bin/kill -9 $1
}

trap "/bin/echo trap > /dev/null" 13

rm -f ~/ksh/echo2

killparent ${PPID} &

/usr/bin/yes

echo "echo1"

/bin/echo "echo2" > ~/ksh/echo2

trap 13
---------------------------
and execute it via ssh:
ssh localhost ~/ksh/repro.ksh >/dev/null

you'll find ~/ksh/echo2 with content:
echo1
echo2

which is wrong, there should be only "echo2". Problem exists in both latest 
stable ksh93t+ (2010-06-21) and ksh93u- beta (2010-07-01).

Regards,
Michal Hlavinka
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to