title: How to pass command line arguments to a shell alias?
body: <p>How do I pass the command line arguments to an alias? Here is a sample:</p>
  
  <pre>
  alias mkcd='mkdir $1; cd $1;'
  </pre>
  
  <p>But in this case the $xx is getting translated at the alias creating time and not at  runtime. I have, however, created a workaround using a shell function (after googling a little) like below:  </p>
  
  <pre>
  function mkcd(){
    mkdir $1
    cd $1
  }
  </pre>
  
  <p>Just wanted to know if there is a way to make aliases that accept CL parameters.<br>
  BTW - I use 'bash' as my default shell.</p>