Skip to content

how to change the powershell version that quarto uses for post-render shell command? #8842

Closed Answered by cderv
kompre asked this question in Q&A
Discussion options

You must be logged in to vote

In any terminal window, the command $PSVersionTable.PSVersion return 7.4.1 (that's what I'm currently using)

  • powershell is the CLI command for powershell 5 version
  • pwsh is the CLI command for powershell 7+

See https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.4#renamed-powershellexe-to-pwshexe

So here you are calling explicitly powershell 5 which is what you get.

Quarto is just calling what ever command you pass using Deno.Run - it won't do anything else about shell configuration or detection.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kompre
Comment options

You must be logged in to vote
1 reply
@cderv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants