Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bertysentry opened this issue Feb 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bertysentry
Copy link
Member

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.

@bertysentry bertysentry self-assigned this Feb 4, 2024
@bertysentry bertysentry added the bug Something isn't working label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant