Skip to content

Conversation

mattcargile
Copy link
Contributor

@mattcargile mattcargile commented Nov 26, 2022

Fixes #104

Add logic if pwd is a UNC path. Starting a cmd.exe process from a UNC path displays an unecessary warning message so ensuring the pwd is set to $HOME.

Get-FileSystemCmd - Add logic for cmd.exe UNC handling requiring pushd into the UNC path for searching.

Get-EditorLaunch - Use ProviderPath property for Resolve-Path instead of default ToString() output. (resolve-path '\\localhost\c$\users\').ToString() returns Microsoft.PowerShell.Core\FileSystem::\\localhost\c$\users\ which isn't supported by native terminal or visual text editors.

Add logic if `pwd` is a UNC path. Starting a `cmd.exe`
process from a UNC path displays an unecessary warning
message so ensuring the `pwd` is set to `$HOME`.

`Get-FileSystemCmd` - Add logic for `cmd.exe` UNC handling
requiring pushd into the UNC path for searching.

`Get-EditorLaunch` - Use `ProviderPath` property for
Resolve-Path instead of default `ToString()` output.
`(resolve-path '\\localhost\c$\users\').ToString()`
returns `Microsoft.PowerShell.Core\FileSystem::\\localhost\c$\users\`
which isn't supported by native terminal or visual text editors.
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.

Invoke-FuzzyEdit - Cmd.exe UNC Handling

1 participant