This is a short article on how to use && equivalent in Windows terminals (Powershell & command prompt).
If you try to use && in Windows, you will face an error :
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorR
ecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
This happens because Windows does not support && keyword.
What you can replace it with is ; aa. For example :
vagrant up && vagrant ssh
\\ change to :
vagrant up ; aa vagrant ssh
That's it.
Hope it helps !
Top comments (0)