title: Can't use temp dir
body: <p>I'm trying to make tmp dir with bash script using that command:</p>
  <pre><code>mktemp -d /tmp/foo.XXXXXXXXX\r
  </code></pre>
  <p>So, as an result a have, for example (with common in the end):</p>
  <pre><code>/tmp/foo.wGBkCRpYt.
  </code></pre>
  <p>But I can't change dir after that from this bash script:</p>
  <pre><code>cd /tmp/foo.wGBkCRpYt 
  </code></pre>
  <p><strong>Answer: No such file or directory</strong></p>
  <pre><code>cd /tmp/foo.wGBkCRpYt. 
  </code></pre>
  <p><strong>Answer: No such file or directory</strong></p>
  <p>What's wrong I do?</p>