title: Trouble reading second argument in bash script
body: <p>I need to pass argument for commit function. When I do the commit through</p>
  
  <pre><code>./test.sh commit -m "first" 
  </code></pre>
  
  <p>its not really committing it. believe somehow I am not passing right argument parameter either in case or function.</p>
  
  <p>Here is the script </p>
  
  <pre><code>#!/usr/bin/env bash
  
  clone () {
    git clone $1
  }
  
  commit () {
    git commit $*
  }
  
  case $1
  in
     clone) clone $2 ;;
     commit) commit $2 ;;
  
         *) echo "Invalid Argument passed" ;;
  esac
  </code></pre>