pkg/go/ast: Avoid doing zero-length writes to the fd.
pkg/go/ast: Avoid doing zero-length writes to the fd.

After each line, ast.Print would do a zero-length write,
which would hit the boundary condition on Plan 9 when
reading over pipes (since message boundaries are
preserved). This change makes sure we only do positive-
length writes.

R=rsc, rminnich, dave, r
CC=golang-dev
http://codereview.appspot.com/6558046

Committer: Rob Pike <4dc7c9ec434ed06502767136789763ec11d2c4b7@golang.org>
abustany/go,abustany/go,abustany/go,abustany/go,abustany/go,abustany/go,abustany/go