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

Fix shell wrapper for PowerShell #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spenserblack
Copy link

@spenserblack spenserblack commented Jan 10, 2025

This makes sure that GetFullPath gets evaluated before passing its value to Set-Location. This prevents Set-Location from raising an error "A positional parameter cannot be found that accepts argument 'C:\path\to\dir'".


I received this error on both PowerShell and Windows PowerShell (yes, there's a difference 😅). Additionally I double-checked if there was any difference between PowerShell on Linux and on Windows, just to see if this was somehow OS-specific. This changed resolved the issue for both Windows PowerShell and PowerShell.

Related: #191

@spenserblack
Copy link
Author

spenserblack commented Jan 10, 2025

I can sign this commit later when I get to my main device. Otherwise, if acceptable to the admins, bypassing the merge requirements and squash-merging will mark the squashed commit as verified. Signed

This makes sure that `GetFullPath` gets evaluated before passing its
value to `Set-Location`. This prevents `Set-Location` from raising an
error "A positional parameter cannot be found that accepts argument
'C:\path\to\dir'".
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

Successfully merging this pull request may close these issues.

1 participant