title: Passing bash argument as string
body: <p>i have a little and probably very stupid problem..</p>
  
  <p>I'm trying to make an alias for tar and gzip which uses the file name (given as an argument), but it is not converting as expected to the filename in the output.</p>
  
  <p>My alias is:</p>
  
  <pre><code>alias targz='tar -cvzf $1.tar.gz $1'
  </code></pre>
  
  <p>It works, but the argument stored in $1 is not working when setting the filename, it zips it in a file called ".tar.gz".</p>
  
  <p>I tried just echoing '$1.tar.gz' and the output is '.tar.gz', so, i think it should be something very stupid in the format.</p>
  
  <p>Any help is welcome,</p>