Package: gawk
Version: 1:3.1.8+dfsg-0.1
Severity: normal

Double output:

    % echo hello world | gawk -f /usr/share/doc/gawk/examples/prog/wordfreq.awk 
| sort
    hello       1
    hello       1
    world       1
    world       1

The cause is some extra code that somehow got in, see attached patch/diff file.

Hope this helps...


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages gawk depends on:
ii  libc6        2.13-21
ii  libsigsegv2  2.9-4  

gawk recommends no packages.

gawk suggests no packages.

-- no debconf information

-- debsums errors found:
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 74758 
package 'virtualbox-2.2':
 error in Version string '2.2.4-47978_Debian_lenny': invalid character in 
revision number
*** /usr/share/doc/gawk/examples/prog/wordfreq.awk	Tue Apr 20 04:51:25 2010
--- wordfreq.awk	Wed Oct 19 14:47:58 2011
***************
*** 9,18 ****
  }
  
  END {
-     for (word in freq)
-         printf "%s\t%d\n", word, freq[word]
- }
- END {
      sort = "sort -k 2nr"
      for (word in freq)
          printf "%s\t%d\n", word, freq[word] | sort
--- 9,14 ----

Reply via email to