Package: mawk
Version: 1.3.3-15
Severity: normal
File: /usr/bin/mawk
Indexing of substr in mawk is not correct
date +"%y-%m-%d %H:%M:%S" | mawk '{ printf ("%s %s\n", $2, substr($2, 0, 5)) }'
08:57:41 08:5
gawk is korrekt
date +"%y-%m-%d %H:%M:%S" | gawk '{ printf ("%s %s\n", $2, substr($2, 0, 5)) }'
08:57:33 08:57
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mawk depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
mawk recommends no packages.
mawk suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]