Package: mawk Version: 1.3.3-15 Severity: normal $ for i in `seq 10` ; do echo x ; sleep 1 ; done | gawk '{ print $1 ; fflush() }' | ts Aug 18 12:16:39 x Aug 18 12:16:40 x Aug 18 12:16:41 x Aug 18 12:16:42 x Aug 18 12:16:43 x Aug 18 12:16:44 x Aug 18 12:16:45 x Aug 18 12:16:46 x Aug 18 12:16:47 x Aug 18 12:16:48 x $ for i in `seq 10` ; do echo x ; sleep 1 ; done | mawk '{ print $1 ; fflush() }' | ts Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x Aug 18 12:17:14 x
(Piping to ts makes stdout buffered, hence the fflush(); the same behavior occurs if I don't pipe to ts and omit the fflush(), but then I don't have the timestamps to make the problem obvious.) - Josh Triplett -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages mawk depends on: ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib mawk recommends no packages. mawk suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org