Title: Set-Location preserves case instead of matching filesystem on case-insensitive/preserving system · Issue #5678 · PowerShell/PowerShell · GitHub
Open Graph Title: Set-Location preserves case instead of matching filesystem on case-insensitive/preserving system · Issue #5678 · PowerShell/PowerShell
X Title: Set-Location preserves case instead of matching filesystem on case-insensitive/preserving system · Issue #5678 · PowerShell/PowerShell
Description: Steps to reproduce mkdir Foo cd foo Expected behavior Working directory ends in `\Foo`. Actual behavior Working directory ends in `\foo`. (note the difference in case) Remarks I originally thought this issue belonged with #1273, but that...
Open Graph Description: Steps to reproduce mkdir Foo cd foo Expected behavior Working directory ends in `\Foo`. Actual behavior Working directory ends in `\foo`. (note the difference in case) Remarks I originally thought ...
X Description: Steps to reproduce mkdir Foo cd foo Expected behavior Working directory ends in `\Foo`. Actual behavior Working directory ends in `\foo`. (note the difference in case) Remarks I originally thought ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5678
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set-Location preserves case instead of matching filesystem on case-insensitive/preserving system","articleBody":"\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nmkdir Foo\r\ncd foo\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\n Working directory ends in `\\Foo`.\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\n Working directory ends in `\\foo`. (note the difference in case)\r\n```\r\n\r\nRemarks\r\n---------------\r\nI originally thought this issue belonged with #1273, but that is about tab completion and globbing on non-Windows platforms, whereas this does not involve tabbing or globbing, and is on Windows.\r\n\r\nThis problem can cause problems with git and [other things](https://github.com/vuejs/vue-cli/issues/648#issuecomment-350622047).\r\n\r\nIf I use cmd.exe instead, it gives the expected/desired results.\r\n\r\nOn case-**sensitive** systems, I don't know what the correct behavior should be (reject it if the path doesn't exist, or automagically switch to the fs-matching case)... perhaps it should be controlled by the same settings as in #1273.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n```powershell\r\nPS C:\\Users\\danthom\u003e $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 5.1.17047.1000\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.17047.1000\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n```\r\n","author":{"url":"https://github.com/jazzdelightsme","@type":"Person","name":"jazzdelightsme"},"datePublished":"2017-12-12T20:14:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/5678/PowerShell/issues/5678"}
| 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:5a1fce20-e6c0-c140-3043-8bda22e050c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 937C:1037B4:3926DD:4D7A0A:6A57FF64 |
| html-safe-nonce | c278ffa5d836777c50b7c6ad7dc507b5fbe9c69ce894998194186418a5ea77ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzdDOjEwMzdCNDozOTI2REQ6NEQ3QTBBOjZBNTdGRjY0IiwidmlzaXRvcl9pZCI6IjY2ODc1NzM5NzIxMzY0OTI5MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f313c896c25ab930e3a4ff79d8135a9fae933e10f83f2ea42511b3b33554e6d |
| hovercard-subject-tag | issue:281522412 |
| 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/5678/issue_layout |
| twitter:image | https://opengraph.githubassets.com/227cd47f227d710e94ea22ba65a2e46ab0a2e03893ff346852efcdd0b5716f54/PowerShell/PowerShell/issues/5678 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/227cd47f227d710e94ea22ba65a2e46ab0a2e03893ff346852efcdd0b5716f54/PowerShell/PowerShell/issues/5678 |
| og:image:alt | Steps to reproduce mkdir Foo cd foo Expected behavior Working directory ends in `\Foo`. Actual behavior Working directory ends in `\foo`. (note the difference in case) Remarks I originally thought ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jazzdelightsme |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width