RFR: CODETOOLS-7901416 Fix incorrect awk substr indexing in webrev

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Tue May 5 21:46:06 UTC 2015


There are several cases of calls to the substr function in awk 
expressions in webrev, that assume 0 is the first position in the string.

According to awk syntax, strings are 1-indexed. However, several awk 
implementations treat the incorrect 0 as an 1. Not so for mawk, which is 
the default awk implementation on Ubuntu.

Bug: https://bugs.openjdk.java.net/browse/CODETOOLS-7901416
WebRev: 
http://cr.openjdk.java.net/~ihse/CODETOOLS-7901416-fix-awk-substr-to-1/webrev.01

/Magnus



More information about the webrev-dev mailing list