<p dir="auto"><strong>Symfony version(s) affected</strong>: 2.8.39<br>
PHP Version: 7.1.17</p>
<p dir="auto"><strong>Description</strong><br>
[InvalidArgumentException]<br>
When I run the console command: php bin/console <strong>-e=dev</strong> , I get an error:<br>
The file "/path_to_project/project/app/config/config_=dev.yml" does not exist.<br>
But when I do this through: php bin/console <strong>--env=dev,</strong> everything is ok</p>
<p dir="auto"><strong>How to reproduce</strong></p>

<p dir="auto">php bin/console -e=dev</p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>yes</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4.5</td>
</tr>
</tbody>
</table>
<p dir="auto">Hi...</p>
<p dir="auto">when coding I was used to setting an alias as so:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="alias dev='./bin/console -e=dev'"><pre class="notranslate"><span class="pl-c1">alias</span> dev=<span class="pl-s"><span class="pl-pds">'</span>./bin/console -e=dev<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">But since I upgraded to <code class="notranslate">3.4.5</code> I got this error:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ bin/console -e=dev c:c

In FileLocator.php line 44:

  The file &quot;/var/www/html/app/config/config_=dev.yml&quot; does not exist."><pre class="notranslate">$ bin/console -e=dev c:c

In FileLocator.php line 44:

  The file <span class="pl-s"><span class="pl-pds">"</span>/var/www/html/app/config/config_=dev.yml<span class="pl-pds">"</span></span> does not exist.</pre></div>
<p dir="auto">It seems now the good syntax is either</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="./bin/console -edev c:c
# Or
./bin/console --env=dev c:c"><pre class="notranslate">./bin/console -edev c:c
<span class="pl-c"><span class="pl-c">#</span> Or</span>
./bin/console --env=dev c:c</pre></div>
<p dir="auto">It seems to me that it is a breaking change (not a huge one of course but still...)</p>
<p dir="auto">Regards,<br>
Adrien</p>