Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

The token '&&' is not a valid statement separator in this version in vs code terminal

I get an error when I try

 mkdir python && cd python && echo python > index.py

in my VS code terminal. This is the tutorial I am following.
here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

could you please check your PowerShell version using the following command

$PSVersionTable.PSVersion

As far I know, one of the new features of Powershell 7.0 is Pipeline chain operators: && and ||
so this should work only on powershell 7

Ref: https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-70?view=powershell-7

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading