title: Jenkins reads double quotes as single quote causing ambiguous redirect error
body: <p>I'm creating my first job in Jenkins and for the Execute shell command I have the following:</p>
  
  <pre><code>C:/project/script.sh "Execute script" flag1 flag2 - -
  </code></pre>
  
  <p>The build fails. When I look at the console output I see </p>
  
  <pre><code>+ C:/projects/script.sh 'Executing build script' flag1 flag2 - -
  C:/projects/script.sh: line 29: $LOGFILE: ambiguous redirect
  </code></pre>
  
  <p>I believe the ambiguous redirect is because Jenkins is converting the double quotes into single quotes. The original command works fine outside jenkins. </p>
  
  <p>Is there a way to get Jenkins to use double quotes, as the script expects?
  I'm using jenkins-1.641 on Windows server 2012</p>
  
  <p>script.sh looks like this:</p>
  
  <pre><code>line 20 #include file
  line 21 if [ "$parameterFile" != "" ] 
  line 22   then source $parameterFile ; else source $CURRENT_DIR/scripts/parameter.sh
  line 23 fi 
  line 24 source $SCRIPT_FOLDER/functions.sh
  line 25 source $SCRIPT_FOLDER/mailfunctions.sh
  line 26
  line 27 #file to save the log
  line 28 export LOGFILE=$(pwd)/${PROJECT_NAME}_build_$(date "+%Y-%m-%d_%H%M%S").log
  line 29 echo &gt; $LOGFILE
  line 30 echo &gt; $LOG_FILE_REPO
  </code></pre>