title: Having problems calling function within bash script
body: <p>I've been working on our intro scripting assignment, and am having issues calling functions within the script. I am in the second portion of the assignment, and I am just testing to make sure what I have is (hopefully) going to work.  I have gathered some directories, and ask a yes or no question.  When I get a 'y', I wrote a little function that I call, and when I get a 'n' I have another function, both simple echoes.  What is the issue?</p>
  
  <pre><code>part_two(){
      answer=""
      for value in "$@";do
        echo "$value"
        while [ "$answer" != "y" -a "$answer" != "n" ]
        do 
          echo -n "Would you like to save the results to a file? (y/n): "
          read answer
        done
        if [ "$answer" = "n" ]
          then 
            part_six
        elif [ "$answer" = "y" ]
          then 
            part_five
        fi 
      done
  }
  
  part_two $@
  
  part_five(){
      echo -n "working yes";
  }
  
  part_six(){
      echo -n "working no";
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated, as always.</p>