Title: Start-Job -WorkingDirectory only accepts native filesystem paths · Issue #11050 · PowerShell/PowerShell · GitHub
Open Graph Title: Start-Job -WorkingDirectory only accepts native filesystem paths · Issue #11050 · PowerShell/PowerShell
X Title: Start-Job -WorkingDirectory only accepts native filesystem paths · Issue #11050 · PowerShell/PowerShell
Description: This has two ramifications: A path based on a PS drive isn't supported. A note re a possible fix: The child process running the script block cannot be assumed to have the same PS (filesystem) drives defined, but at least a PS-drive-based...
Open Graph Description: This has two ramifications: A path based on a PS drive isn't supported. A note re a possible fix: The child process running the script block cannot be assumed to have the same PS (filesystem) drive...
X Description: This has two ramifications: A path based on a PS drive isn't supported. A note re a possible fix: The child process running the script block cannot be assumed to have the same PS (filesystem) d...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11050
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start-Job -WorkingDirectory only accepts native filesystem paths","articleBody":"This has two ramifications:\r\n\r\n* A path based on a PS drive isn't supported.\r\n\r\n * A note re a possible fix: The child process running the script block cannot be assumed to have the same PS (filesystem) drives defined, but at least a PS-drive-based input path should be resolved to the underlying native path.\r\n\r\n* The interchangeable use of `/` and `\\` isn't supported.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\nNew-PSDrive foo filesystem .; Set-Location foo:/\r\n\r\nStart-Job { $pwd } -WorkingDirectory $pwd | Receive-Job -Wait -AutoRemove | Should -Match '^foo:[/\\\\]'\r\n\r\nif (-not $IsWindows) {\r\n Start-Job { $pwd } -WorkingDirectory '\\' | Receive-Job -Wait -AutoRemove | Should -Be '/'\r\n}\r\n```\r\n\r\n# Expected behavior\r\n\r\nBoth tests should pass.\r\n\r\n# Actual behavior\r\n\r\nBoth tests fail.\r\n\r\n# Environment data\r\n\r\n```none\r\nPowerShell Core 7.0.0-preview.5\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-11-12T16:53:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/11050/PowerShell/issues/11050"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:35270f2f-73fb-e5e6-e382-9d76774ee7f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B234:4537E:2025B94:2B6EC41:6A59A49F |
| html-safe-nonce | 381e1f8d35ab0ef64c275fd50a211f7d43ecb38dfdd0462fe5adad2be1fecb38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjM0OjQ1MzdFOjIwMjVCOTQ6MkI2RUM0MTo2QTU5QTQ5RiIsInZpc2l0b3JfaWQiOiIyMzcxNjc2NzMzNTY3NTA5NjYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b214e2894de07916323efc8fd146670c3594340529c2fae68e6103f087cd17f6 |
| hovercard-subject-tag | issue:521672603 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11050/issue_layout |
| twitter:image | https://opengraph.githubassets.com/095b36d3ca044159fe6bcf576a5bba13e698a85018884914cf14485d2df50527/PowerShell/PowerShell/issues/11050 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/095b36d3ca044159fe6bcf576a5bba13e698a85018884914cf14485d2df50527/PowerShell/PowerShell/issues/11050 |
| og:image:alt | This has two ramifications: A path based on a PS drive isn't supported. A note re a possible fix: The child process running the script block cannot be assumed to have the same PS (filesystem) drive... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0b971869dd75eec26500a9de7e85b8137c6bf0f6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width