title: Bash file system directory test trickery
body: <p>Assuming that the folders exist in the script below, can someone tell my why this is not working? I escape the spaces extra for the test to work but somehow it does not like it with no error...</p>
  
  <pre><code>#!/bin/bash
  Base='/tmp/'
  Sub='one space/another space/'
  declare -a ASub
  for argR in "${Sub[@]}"
      do
          Sub+=($(printf %q "$argR"))
      done
  clear
  echo -n $Base
  if [ -d  $ExBase ]
      then
          echo "...OK"
      else
          echo "...FAIL"
  fi
  BaseAndSub=$Base$Sub
  echo -n $BaseAndSub
  if [ -d  "$BaseAndSub" ]
      then
          echo "...OK"
      else
          echo "...FAIL"
  fi
  exit 0
  </code></pre>