title: Bash disagrees with my pipes, refuses to do the full command
body: <p>This is my code so far:</p>
  
  <pre><code>#! /bin/bash
  
  Options=("1" "2" "3")
  select opt in "${Options[@]}"
  do
    case "$REPLY" in
       1)
          who=$(whoami)
          echo -e "you are: $who"
          ;;
       2)
          var=$(uptime | awk '{print $3}' | cut -d, -f 1)
          echo $var
          ;;
       3) break;;
       *) echo "Invalid input";;
    esac
  done
  </code></pre>
  
  <p>It doesn't work. The first option works just fine. The second one however doesn't. </p>
  
  <p>Further testing suggests bash doesn't like piping much, the output is simply "#", suggesting it's only the awk part of the command that actually gets executed. The command just works fine out in the shell (it reports the time it has been online only).</p>