title: mkdir: missing operand when doing sudo over ssh
body: <p>I am trying to create directory with sudo user permission over SSH.</p>
  
  <p>Here is the command i formed</p>
  
  <p><code>some_command "ssh -t userA@host bash -c \"\'sudo -u userB bash -c \" mkdir -p /home/userB/dir_to_create \" \'\" "</code></p>
  
  <p>here <code>some_command</code> is part of <code>expect</code> script.</p>
  
  <p>I am getting this error :-</p>
  
  <pre><code>[sudo] password for userB:
  mkdir: missing operand
  Try `mkdir --help' for more information.
  Connection to host closed.
  </code></pre>
  
  <p>If i run 
  <code>sudo -u userB bash -c "mkdir /home/userB/dir_to_create"</code></p>
  
  <p>it works.</p>