title: Function instead of alias in C shell login script
body: <p>I saw in <a href="https://stackoverflow.com/questions/941338/shell-script-how-to-pass-command-line-arguments-to-an-unix-alias">this</a> topic that you can add a function in the shell login script instead of an alias if you want to use parameters. However, I placed the following code inside my .cshrc file in the section with aliasses:</p>
  
  <pre><code>function gf()
  {
      grep -n $1 `find .` | grep -v "can't open"
  }
  </code></pre>
  
  <p>But when I type source .cshrc, I get the error message: Badly placed ()'s. Is the syntax different for a C shell than in a Bash shell? If so, what is the correct syntax?</p>