Skip to content
New issue

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

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

Already on GitHub? # to your account

gsub() doesn't work on array entries #155

Closed
bertysentry opened this issue Aug 28, 2024 · 0 comments · Fixed by #156
Closed

gsub() doesn't work on array entries #155

bertysentry opened this issue Aug 28, 2024 · 0 comments · Fixed by #156
Assignees
Labels
bug Something isn't working

Comments

@bertysentry
Copy link
Member

Consider the below script:

BEGIN {
  mac[1] = "ab:cd";
  gsub(/:/, "", mac[1]);
  print mac[1];
}

Expected result:

abcd

Actual output:

ab:cd
@bertysentry bertysentry self-assigned this Aug 29, 2024
@bertysentry bertysentry added the bug Something isn't working label Aug 29, 2024
bertysentry added a commit that referenced this issue Aug 29, 2024
…rray-entries

Issue #155: gsub on array elements, code clean up, and removed annoying SLF4J message in stdout
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
1 participant