title: Pass arguments to set-alias in modulefile
body: <p>I try to load a modulefile containing an alias from a bash shell. The <a href="http://modules.sourceforge.net/man/modulefile.html" rel="noreferrer">tutorial page</a> says the following about the set-alias command:</p>
  
  <blockquote>
    <p>set-alias alias-name alias-string</p>
    
    <p>Sets an alias or function with the name alias-name in the user's environment to the string alias-string. Arguments can be specified using the Bourne Shell style of function arguments. If the string contains "$1", then this will become the first argument when the alias is interpreted by the shell. The string "$*" corresponds to all of the arguments given to the alias. The character '$' may be escaped using the '\' character.</p>
    
    <p>For some shells, aliases are not possible and the command has no effect. For Bourne shell derivatives, a shell function will be written (if supported) to give the impression of an alias. When a modulefile is unloaded, set-alias becomes unset-alias.</p>
  </blockquote>
  
  <p>I want to use an alias to create a command that lets me start a given software with some specific parameters. Can anyone please point out what is wrong with the syntax below?</p>
  
  <pre><code>set-alias    cmd     "cmd $1 -cnf=/shared/$2 -ssh -etc"
  </code></pre>