<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows Terminal (Preview)
Version: 0.6.3121.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows Terminal (Preview)
Version: 0.6.3121.0
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\&gt; $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19018.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19018.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1"><pre lang="none" class="notranslate"><code class="notranslate">PS C:\&gt; $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19018.1
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19018.1
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\&gt; conda --version
conda 4.7.12"><pre lang="none" class="notranslate"><code class="notranslate">PS C:\&gt; conda --version
conda 4.7.12
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>

<ol dir="auto">
<li>Install Anaconda</li>
<li>Create a profile in <code class="notranslate">profiles.json</code> which is the same as the following, with updated references where needed:</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// profiles.json

{
   &quot;profiles&quot;:
    [
        {
            &quot;guid&quot;: &quot;{398546a1-6641-4b31-b81d-2afca23ddc5f}&quot;,
            &quot;icon&quot;: &quot;ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png&quot;,
            &quot;hidden&quot;: false,
            &quot;name&quot;: &quot;Anaconda Powershell Prompt (current)&quot;,
            &quot;startingDirectory&quot;: &quot;%HOMEPATH%&quot;,
            &quot;commandline&quot;: &quot;%windir%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -ExecutionPolicy ByPass -NoExit -Command \&quot;&amp; 'C:\\Users\\[REDACTED]\\scoop\\apps\\anaconda3\\current\\shell\\condabin\\conda-hook.ps1' ; conda activate 'C:\\Users\\[REDACTED]\\scoop\\apps\\anaconda3\\current' \&quot;&quot;
        },
    ],
}"><pre class="notranslate"><span class="pl-ii">// profiles.json</span>

{
   <span class="pl-ent">"profiles"</span>:
    [
        {
            <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{398546a1-6641-4b31-b81d-2afca23ddc5f}<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"hidden"</span>: <span class="pl-c1">false</span>,
            <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Anaconda Powershell Prompt (current)<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>%HOMEPATH%<span class="pl-pds">"</span></span>,
            <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>%windir%<span class="pl-cce">\\</span>System32<span class="pl-cce">\\</span>WindowsPowerShell<span class="pl-cce">\\</span>v1.0<span class="pl-cce">\\</span>powershell.exe -ExecutionPolicy ByPass -NoExit -Command <span class="pl-cce">\"</span>&amp; 'C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>[REDACTED]<span class="pl-cce">\\</span>scoop<span class="pl-cce">\\</span>apps<span class="pl-cce">\\</span>anaconda3<span class="pl-cce">\\</span>current<span class="pl-cce">\\</span>shell<span class="pl-cce">\\</span>condabin<span class="pl-cce">\\</span>conda-hook.ps1' ; conda activate 'C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>[REDACTED]<span class="pl-cce">\\</span>scoop<span class="pl-cce">\\</span>apps<span class="pl-cce">\\</span>anaconda3<span class="pl-cce">\\</span>current' <span class="pl-cce">\"</span><span class="pl-pds">"</span></span>
        },
    ],
}</pre></div>
<ol start="3" dir="auto">
<li>Try to launch launch this profile in Terminal</li>
</ol>
<h1 dir="auto">Expected behavior</h1>

<p dir="auto">This same profile had been used to launch an Anaconda Powershell Prompt and until Terminal v0.6.3121.0, had been working properly.</p>
<h1 dir="auto">Actual behavior</h1>

<p dir="auto">Now, there is a brief flash where it seems like Terminal is trying to launch the shell, but it quickly fails to do so and closes that tab. If I launch a regular PowerShell shell, and then manually issue the Command, I can get things working as they previously did, so this seems to be a recent change with how the commandline property is read rather than what I'm trying to execute. This seems to have stopped working with the update I received from Microsoft Store recently. Microsoft Store indicates that I received an update yesterday, but I can't confirm that this was when this change occurred, only that it happened in the past few days as this was working last week. I am suspicious that there was a change with how escaping things might have changed but I wasn't able to determine what is different now and what might work.</p>
<p dir="auto">This means a profile specifying <code class="notranslate">%WINDIR%/system32/cmd.exe</code> will hyperexplode, much like my coffee mug.</p>