Skip to content

Range patterns must not evaluate endpat until the range starts matching #115

@bertysentry

Description

@bertysentry

The below awk script:

a++ == 2, a++ == 5

with this input:

1
2
3
4
5
6
7
8
9
10

should print:

3
4
5

But Jawk produces:

2
3

because it executes both begpat and endpat for each record.

The tuples must be updated to reflect this.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions