title: awk processing single line with fields separated by semicolons failing with RS
body: <p>I have a file called strg.cfg with the content</p>
  
  <pre><code>iMac;1;1;37;;Monitor;1;1;0;;Thunderbolt;1;0;0;;TimeMachine;0;0;0;;USB;1;0;0;;Lacie Stereo;0;0;0;;Rland MacMini;0;0;0;;Scanner;0;0;0;;end
  </code></pre>
  
  <p>The records are separated by two semicolons ;; and the fields by a single semicolon.
  I tried to process this file with the following awk file</p>
  
  <pre><code>BEGIN {FS=";"; RS="/\;\;/"}
  { print $1 ", " $2 ", " $3 ", " $6 }
  </code></pre>
  
  <p>$6 is used as a test since if it works it shouldn't print anything for that since it's only four fields.
  But that doesn't seem to work, as if the RS= is not taken into consideration at all. It will always still see the whole line as the record.
  Printing "Monitor" for $6 and not printing other lines.</p>