Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell Core #1554

Open
runeimp opened this issue Feb 23, 2023 · 1 comment
Open

PowerShell Core #1554

runeimp opened this issue Feb 23, 2023 · 1 comment

Comments

@runeimp
Copy link

runeimp commented Feb 23, 2023

On macOS Big Sur 11.7.3 with the recipe

test:
	echo ': test'

If I have set shell := ["pwsh", "-c"] # PowerShell 7.3.2 Core (Multi-Platform) I get

echo ': test'
: test

cmdlet Write-Output at command pipeline position 1
Supply values for the following parameters:
InputObject: 

If I hit Ctrl+C then InputObject: ends up InputObject: error: Recipe `test` failed on line 14 with exit code 1

echo ': test'
: test

cmdlet Write-Output at command pipeline position 1
Supply values for the following parameters:
InputObject: error: Recipe `test` failed on line 14 with exit code 1

I've had PowerShell Core installed for about a year now and never experienced this issue before.

If I use set positional-arguments I get

echo ': test'
: test
test

Which is adding the name of the recipe test as an additional argument on each line which I believe hides the InputObject error. As this doesn't happen when using the default shell I'm inclined to believe this is a change in PowerShell which I believe updated recently. But not 100% sure and wanted to point out the problem.

@runeimp
Copy link
Author

runeimp commented Feb 23, 2023

I've not tested this on Windows yet and wondering if any windows users are experiencing this with Just 1.13.0 using PowerShell Desktop and PowerShell Core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant