Package: gawk
Version: 1:3.1.5.dfsg-4
Severity: important

The following calls to match return bad RLENGTH values:
$ echo 'b' | awk '{print match($0,"a*"); print RSTART,RLENGTH}'
1
1 18
was expecting RLENGTH=0

$ echo 'ba' | awk '{print match($0,"a*"); print RSTART,RLENGTH}'
1
1 18
was expecting RLENGTH=0



The following returns the expected result:

$ echo 'b' | awk '{print match($0,"a"); print RSTART,RLENGTH}'
0
0 -1

$ echo 'a' | awk '{print match($0,"a*"); print RSTART,RLENGTH}'
1
1 1

$ echo 'aa' | awk '{print match($0,"a*"); print RSTART,RLENGTH}'
1
1 2


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gawk depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries

gawk recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to