title: I do not understand the break command
body: <p>in:</p>
  
  <pre><code>#!/bin/sh
  
  for var1 in 1 2 3
  do
     for var2 in 0 5
     do
        if [ $var1 -eq 2 -a $var2 -eq 0 ]
        then
           break 2
        else
           echo "$var1 $var2"
        fi
     done
  done
  </code></pre>
  
  <p>the output is:</p>
  
  <pre><code>1 0
  1 5
  </code></pre>
  
  <p>and then script stops.</p>
  
  <p>how ever if the break command's argument (2) is removed, the output is:</p>
  
  <pre><code>1 0
  1 5
  3 0
  3 5
  </code></pre>
  
  <p>What i am asking is why <code>3 0</code> and <code>3 5</code> are printed, when the script is conditioned not to break? script didn't print <code>2 0</code> and <code>2 5</code>, and <code>3 0</code> and <code>3 5</code> should signal a break as well...</p>