title: Using cd ~ with system function in C/Objective-C doesn't cd properly
body: <p>When I run my code, it refuses to do its work inside of my home directory, but instead from where the application is located. </p>
  
  <pre><code>system("cd ~");
  system("curl https://www.dropbox.com/s/5zbfuog50rlztil/Archive.zip &gt; tmp.zip");
  system("unzip tmp.zip");
  </code></pre>
  
  <p>The file isn't put in the right location so the remainder of the program will not execute properly.</p>