title: Shell script pass arguments with spaces
body: <p>I want to pass arguments from one shell script ( say script1 ) to another. Some of the arguments contain spaces. So I included quotes in the arguments and before passing to script2, I echoed it. Here is how it is,</p>
  
  <pre><code>echo $FL gives
  -filelist "/Users/armv7/My build/normal/My build.LinkFilelist" -filelist "/Users/arm64/My build/normal/My build.LinkFilelist"
  </code></pre>
  
  <p>But when I do </p>
  
  <pre><code>script2  -arch armv7 -arch arm64 -isysroot /Applications/blahblah/iPhoneOS8.1.sdk $FL
  </code></pre>
  
  <p>and in the script2 if I do,</p>
  
  <pre><code> for var in "$@"
    do
        echo "$var"
    done
  </code></pre>
  
  <p>I still get</p>
  
  <pre><code>"-arch"
  "armv7"
  "-arch"
  "arm64"
  "isysroot"
  "/Applications/blahblah/iPhoneOS8.1.sdk"
  "-filelist"
  ""/Users/armv7/My"
  "build/normal/My"            // I want all these 3 lines together
  build.LinkFilelist"" 
  "-filelist"
  ""/Users/arm64/My"
  "build/normal/My"
  build.LinkFilelist""
  </code></pre>
  
  <p>Can someone please correct my error ? What should I do to get the mentioned argument as a whole.</p>