Title: windows: '~' Home reference bug · Issue #20761 · PowerShell/PowerShell · GitHub
Open Graph Title: windows: '~' Home reference bug · Issue #20761 · PowerShell/PowerShell
X Title: windows: '~' Home reference bug · Issue #20761 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Search the existing issues. Make sure you are able to repro it on the latest released version Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Search the existing issues. Make sure you are able to repro it on the latest released version Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Search the existing issues. Make sure you are able to repro it on the latest released version Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/20761
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"windows: '~' Home reference bug ","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Search the existing issues.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [ ] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nwhen i update PowerShell in my windows 11 workstation version to 7.4.0 below is version\r\n$ $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.4.0\r\nPSEdition Core\r\nGitCommitId 7.4.0\r\nOS Microsoft Windows 10.0.22621\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\nwhen i use the `~` to refer my work home, that may conjunct with current path; at old version that method like resolve `~` to $HOME environment variation.\r\nHope can resolve this problem. thanks\n\n### Expected behavior\n\n```console\nps\u003e more ~\\test\r\n1\n```\n\n\n### Actual behavior\n\n```console\n# xxxxxx @ SHC5CG33131WZL in ~\\AppData\\Local\\Temp\\tmphcnstt.tmp [18:41:39]\r\n$ more ~\\test\r\nCannot access file C:\\Users\\xxxxxx\\AppData\\Local\\Temp\\tmphcnstt.tmp\\~\\test\n```\n\n\n### Error details\n\n_No response_\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 7.4.0\r\nPSEdition Core\r\nGitCommitId 7.4.0\r\nOS Microsoft Windows 10.0.22621\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/yuanjs-0108","@type":"Person","name":"yuanjs-0108"},"datePublished":"2023-11-23T10:46:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/20761/PowerShell/issues/20761"}
| 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:e076ff5b-2b45-f81e-f2cf-a3a1f8986fe4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA6C:38B43C:12781B4:1A273FD:6A552528 |
| html-safe-nonce | 4afb098425ab3655960c5f6be2044ae8ca86ba057738f28953c929cf343e0a74 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTZDOjM4QjQzQzoxMjc4MUI0OjFBMjczRkQ6NkE1NTI1MjgiLCJ2aXNpdG9yX2lkIjoiNjE3ODU3MDc0OTI3Nzk3MTc1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e9e7a05902b1ec00544f3f3480a9866eda682b1e9a5c2c4076aca10118a6825 |
| hovercard-subject-tag | issue:2007955489 |
| 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/20761/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0d6c8a9c134c600f618c08ddc9643e4c3855b20705dc02838516d3a9b0f7215/PowerShell/PowerShell/issues/20761 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0d6c8a9c134c600f618c08ddc9643e4c3855b20705dc02838516d3a9b0f7215/PowerShell/PowerShell/issues/20761 |
| og:image:alt | Prerequisites Write a descriptive title. Search the existing issues. Make sure you are able to repro it on the latest released version Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yuanjs-0108 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 358dd24ad7465d20e3fae729b5b169d35b0dd7f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width