Package: gawk
Version: 1:3.1.7.dfsg-5
Severity: normal
While for example you get stdin from ssh piped and there's linefeed after
value, the gawk makes replace chars from the start of line printed out with
print. For example if you print from input "100" with '{ print "value.from "
$1 "000" }' that does not print correct value.from 100000 but 000ue.from 100
So for example this:
ssh -q -o "StrictHostKeyChecking no" [email protected] ipv6 fire conn print
count | awk '{ print "IPv6.value " $1 "000" }'
prints out wrong line "0006.value 535"
but
ssh -q -o "StrictHostKeyChecking no" [email protected] ipv6 fire conn print
count |sed 's/.$//g'| awk '{ print "IPv6.value " $1 "000" }'
gives correct "IPv6.value 585000"
-- System Information:
Debian Release: 6.0.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gawk depends on:
ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib
gawk recommends no packages.
gawk suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]