| Summary: | awk is broken | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Steffen Nurpmeso <steffen> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.27.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Steffen Nurpmeso
2017-12-16 16:07:47 UTC
Can you give me the input file which displays this behavior? You can use the mdocmx.1 file from the same URL [1] mdocmx.sh is at, it is the smallest (3010 bytes) i have that can be processed by the script: ?0[steffen@essex roff.git]$ AWK=nawk ./mdocmx.sh <mdocmx.1 | openssl sha1 (stdin)= e949a0a362d409f79a171583ff5354a678032dcc ?0[steffen@essex roff.git]$ AWK=mawk ./mdocmx.sh <mdocmx.1 | openssl sha1 (stdin)= e949a0a362d409f79a171583ff5354a678032dcc ?0[steffen@essex roff.git]$ AWK=gawk ./mdocmx.sh <mdocmx.1 | openssl sha1 (stdin)= e949a0a362d409f79a171583ff5354a678032dcc ?0[steffen@essex roff.git]$ AWK='/bin/busybox awk' ./mdocmx.sh <mdocmx.1 | openssl sha1 (stdin)= ee1f17a703d6fa8260854e69f129eabe12db7271 ?0[steffen@essex roff.git]$ [1] https://git.sdaoden.eu/cgit/s-roff.git/plain/mdocmx.1?h=next Thanks! Fixed in git: "delete arr[v--]" was evaluating index expression twice. |