Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901416

Fix incorrect awk substr indexing in webrev

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      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.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: