title: bash: syntax error near unexpected token `&' in Visual Studio Code
body: <p>VS Code is using this command to activate my venv:</p>
  <pre><code>$ &amp; d:/Documents/TRIS/venv/Scripts/Activate.ps1
  </code></pre>
  <p>instead of</p>
  <pre><code>source &quot;D:/Documents/MY_EXP/env/Scripts/activate&quot;
  </code></pre>
  <p>Due to the '&amp;' symbol is this command, i catch this error:</p>
  <pre><code>bash: syntax error near unexpected token `&amp;'
  </code></pre>
  <p><img src="https://i.stack.imgur.com/ySRRo.png" alt="xx" /></p>
  <p>So i have to activate it with &quot;source&quot; command by my hands:</p>
  <pre><code>source &quot;D:/Documents/MY_EXP/env/Scripts/activate&quot;
  </code></pre>
  <p>Trying to run my python file I have the same error on console:</p>
  <p><img src="https://i.stack.imgur.com/PMJ84.png" alt="xx" /></p>
  <p>The &amp; symbol is not the part of the paths, this is the part of command. I tried to open other folders too, but the &amp; symbol is everywhere...</p>
  <p>UPD
  I have realised the bash console works correctly in a random way. Sometimes when i open my projects env activates with source. But when i kill terminal and open the new one - ampersand appears. But bash terminal called &quot;Python&quot; still have ampersand in it when i try to run file with activated env.</p>