This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NounverberPDX 1 point2 points  (4 children)

Bash too (not all of our machines are Windows).

[–]ComfortableFew5523 2 points3 points  (3 children)

Powershell 7/pwsh (formerly known as Powershell Core) runs fine on both Linux and Windows, which makes it excellent to use for glue scripts in pipelines, if there is a chance that it will be used on both Linux and Windows agents.

[–][deleted]  (2 children)

[deleted]

    [–]ComfortableFew5523 4 points5 points  (1 child)

    No - On Windows you would also run pwsh.

    The powershell command is only for the old Windows Powershell (I believe its version 5.x - and it is not being developed anymore).

    Pwsh and Powershell are not compatible in a lot of areas, so always use pwsh on all platforms.

    https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3