title: Use forward slash in variable
body: <p>I wrote a script to ease the syncing and building of Android source. I tried adding a function to cherrypick patches, but I can't get it to work properly. I know it's because of the forward slashes, but I don't know how to protect/escape them.</p>
  
  <p>Part of the code is:</p>
  
  <pre><code>   echo "Copy/paste the project folder, i.e. 'frameworks/base'"
     read folder
     echo ""
     echo "Now paste the cherry-pick git link, i.e. 'git fetch &lt;someproject&gt; refs/changes/... &amp;&amp; git cherry-pick FETCH_HEAD'"
     read cherry
     echo ""
     Begin
     clear
     echo ""
     export IFS="&amp;&amp;"
     for x in $cherry
     do
          cd ${CM}/${folder}
      CHERRY=$(trim "$x")
      $CHERRY
     done
  </code></pre>
  
  <p>Let's say that the 'cherry' variable is:</p>
  
  <pre><code>git fetch http://r.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/68/22968/2 &amp;&amp; git cherry-pick FETCH_HEAD
  </code></pre>
  
  <p>I would get this error:</p>
  
  <pre><code>/home/tristan202/bin/build_cm.sh: line 159: git fetch http://r.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/91/23491/2: No such file or directory
  /home/tristan202/bin/build_cm.sh: line 159: git cherry-pick FETCH_HEAD: command not found
  </code></pre>
  
  <p>I cannot figure out why it fails.</p>
  
  <p>The 'trim' function it calls is a function that trims leading and trailing spaces. If I do echo "$CHERRY" within the for loop, the commands are printed correctly, but it still fails.</p>