title: Bash: How to test for failure of mkdir command?
body: <p>I'm writing a bash script and want to do robust error checking in it. </p>
  
  <p>The exit status code for <code>mv</code> to make it fail is easy to simulate a failure.  All you have to do is move a file that doesn't exist, and it fails.</p>
  
  <p>However with <code>mkdir</code> I want to simulate it failing.  mkdir could fail for any number of reasons, problems with the disk, or lack of permissions, but not sure how to simulate a failure.</p>