Print this page
3762 nawk 'continue illegal outside of loops'

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsecdb/common/i.rbac
          +++ new/usr/src/lib/libsecdb/common/i.rbac
↓ open down ↓ 234 lines elided ↑ open up ↑
 235  235  }
 236  236  
 237  237  # When FNR (current file record number) is 1 it indicates that nawk
 238  238  # is starting to read the next file specified on its command line,
 239  239  # and is beginning the next processing pass.
 240  240  FNR == 1 {
 241  241          pass++;
 242  242  }
 243  243  
 244  244  /^#/ || /^$/ {
 245      -        continue;
      245 +        next;
 246  246  }
 247  247  
 248  248  {
 249  249          # For each input line, nawk automatically assigns the complete
 250  250          # line to $0 and also splits the line at field separators and
 251  251          # assigns each field to a variable $1..$n.  Assignment to $0
 252  252          # re-splits the line into the field variables.  Conversely,
 253      -        # assgnment to a variable $1..$n will cause $0 to be recomputed
      253 +        # assignment to a variable $1..$n will cause $0 to be recomputed
 254  254          # from the field variable values.
 255  255          #
 256  256          # This code adds awareness of escaped field separators by using
 257  257          # a custom function to split the line into a temporary array.
 258  258          # It assigns the empty string to $0 to clear any excess field
 259  259          # variables, and assigns the desired elements of the temporary
 260  260          # array back to the field variables $1..$7.
 261  261          #
 262  262          # Subsequent code must not assign directly to $0 or the fields
 263  263          # will be re-split without regard to escaped field separators.
↓ open down ↓ 307 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX