You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I have set my shell to pwsh, (PowerShell 7) and the shellcmdflag accordingly.
setshell=pwsh
setshellcmdflag=-c
When I run :!echo hello, this is what NeoVim calls:
pwsh -c "echo hello"
However, PowerShell interprets "echo hello" (with the quotes) as a command and not echo hello (without the quotes). This makes PowerShell print out echo hello instead of the expected hello.
Is there a way to format it like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, I have set my
shell
topwsh
, (PowerShell 7) and theshellcmdflag
accordingly.When I run
:!echo hello
, this is what NeoVim calls:However, PowerShell interprets
"echo hello"
(with the quotes) as a command and notecho hello
(without the quotes). This makes PowerShell print outecho hello
instead of the expectedhello
.Is there a way to format it like:
pwsh -c {echo hello}
(which is the format shown on the PowerShell docs) instead?
Beta Was this translation helpful? Give feedback.
All reactions