title: What's the difference between the parameters got by read and $1
body: <pre><code>echo -n "*.xcodeproj directory: ";
  read fileDirectory;
  echo -n $fileDirectory;
  fileExtension="pbxproj";
  find $fileDirectory -name "*.${fileExtension}";
  </code></pre>
  
  <p>It shows "find: XXXX"(fileDirectory) no such file or directory</p>
  
  <p>However if I replace <code>read fileDirectory</code> by</p>
  
  <pre><code>fileDirectory=$1
  </code></pre>
  
  <p>It works.</p>
  
  <p>So what's the difference?</p>