title: awk not working in bash -c "somecommand | awk '{print $2}'"
body: <p>This command works as expected:</p>
  
  <pre><code>(dpkg -l | egrep "linux.+3.8.0.*44" | awk '{print $2}')
  linux-generic-lts-raring
  linux-headers-3.8.0-44
  linux-headers-3.8.0-44-generic
  linux-headers-generic-lts-raring
  linux-image-3.8.0-44-generic
  linux-image-generic-lts-raring
  </code></pre>
  
  <p>However, when I run it with <code>bash -c</code> it doesn't work:</p>
  
  <pre><code>bash -c "(dpkg -l | egrep "linux.+3.8.0.*44" | awk '{print $2}')"
  ii  linux-generic-lts-raring         3.8.0.44.44                       Generic     Linux kernel image and headers
  ii  linux-headers-3.8.0-44           3.8.0-44.66~precise1              Header files related to Linux kernel version 3.8.0
  ii  linux-headers-3.8.0-44-generic   3.8.0-44.66~precise1              Linux kernel headers for version 3.8.0 on 64 bit x86 SMP
  ii  linux-headers-generic-lts-raring 3.8.0.44.44                       Generic Linux kernel headers
  ii  linux-image-3.8.0-44-generic     3.8.0-44.66~precise1              Linux kernel image for version 3.8.0 on 64 bit x86 SMP
  ii  linux-image-generic-lts-raring   3.8.0.44.44                       Generic Linux kernel image
  </code></pre>
  
  <p>I have no clue why. It's almost as if the pipe is breaking.</p>