René's URL Explorer Experiment


Title: pwsh as a dotnet global tool exhibits very unusual behavior with Ctrl-C · Issue #11314 · PowerShell/PowerShell · GitHub

Open Graph Title: pwsh as a dotnet global tool exhibits very unusual behavior with Ctrl-C · Issue #11314 · PowerShell/PowerShell

X Title: pwsh as a dotnet global tool exhibits very unusual behavior with Ctrl-C · Issue #11314 · PowerShell/PowerShell

Description: Steps to reproduce Install powershell as a dotnet global tool. Run a long-running thing (like Start-Sleep), and then press Ctrl+C Expected behavior I am returned to a powershell prompt. C:\Users\duhowett>.\.dotnet\tools\pwsh PowerShell 6...

Open Graph Description: Steps to reproduce Install powershell as a dotnet global tool. Run a long-running thing (like Start-Sleep), and then press Ctrl+C Expected behavior I am returned to a powershell prompt. C:\Users\du...

X Description: Steps to reproduce Install powershell as a dotnet global tool. Run a long-running thing (like Start-Sleep), and then press Ctrl+C Expected behavior I am returned to a powershell prompt. C:\Users\du...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11314

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pwsh as a dotnet global tool exhibits very unusual behavior with Ctrl-C","articleBody":"# Steps to reproduce\r\n\r\nInstall powershell as a dotnet global tool. Run a long-running thing (like Start-Sleep), and then press \u003ckbd>Ctrl+C\u003c/kbd>\r\n\r\n# Expected behavior\r\n\r\nI am returned to a powershell prompt.\r\n\r\n```none\r\nC:\\Users\\duhowett>.\\.dotnet\\tools\\pwsh\r\nPowerShell 6.2.3\r\n\r\n(dhowett-dev2) ~ % start-sleep 10\r\n^C\r\n(dhowett-dev2) ~ % # i am returned to a powershell prompt\r\n```\r\n\r\n# Actual behavior\r\n\r\nThe [dotnet tool shim](https://github.com/adityapatwardhan/PowerShell/blob/master/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs) hosting powershell terminates and returns control to _cmd_, but powershell remains connected to the console and reads input simultaneously. PowerShell and CMD share the input buffer, and neither of them can agree on what goes into it.\r\nIf you manage to exit cmd, powershell re-asserts control.\r\n\r\nThe `dir` in the snippet below came from _cmd_\r\n\r\n```none\r\nC:\\Users\\duhowett>.\\.dotnet\\tools\\pwsh\r\nPowerShell 6.2.3\r\n\r\n(dhowett-dev2) ~ % start-sleep 10\r\n^C\r\nC:\\Users\\duhowett>\r\n(dhowett-dev2) ~ % dir\r\n Volume in drive C is Cesium\r\n Volume Serial Number is E499-450A\r\n\r\n Directory of C:\\Users\\duhowett\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/14316954/70569164-43603900-1b4e-11ea-9102-e72dbc6d98a3.png)\r\n\r\nThe blue `d` came from powershell, and the `ir` came from cmd.\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.2.3\r\nPSEdition                      Core\r\nGitCommitId                    6.2.3\r\nOS                             Microsoft Windows 10.0.19041\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\n","author":{"url":"https://github.com/DHowett-MSFT","@type":"Person","name":"DHowett-MSFT"},"datePublished":"2019-12-10T21:10:57Z","url":"https://github.com/PowerShell/PowerShell/issues/11314"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3dd719f9-5ffd-4555-8921-5dabcee5250d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC382:BB03C:185D0F:226C78:6AFD501E
html-safe-nonce4985917ab7cdaaba9dd3de9cc5617a131f89ae639157cfbe7e1732da865f7397
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzgyOkJCMDNDOjE4NUQwRjoyMjZDNzg6NkFGRDUwMUUiLCJ2aXNpdG9yX2lkIjoiMTIzODcxMjMyNzA4ODE5NzY2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd810eca5631442b4edf67624ebb79b373cb0ae390807ae06f4b213476b204288
hovercard-subject-tagissue:535996017
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/11314/issue_layout
twitter:imagehttps://opengraph.githubassets.com/00a8e95a388420dc2a36e4887e0599d0a114a82aec500c719d5471be214cd603/PowerShell/PowerShell/issues/11314
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/00a8e95a388420dc2a36e4887e0599d0a114a82aec500c719d5471be214cd603/PowerShell/PowerShell/issues/11314
og:image:altSteps to reproduce Install powershell as a dotnet global tool. Run a long-running thing (like Start-Sleep), and then press Ctrl+C Expected behavior I am returned to a powershell prompt. C:\Users\du...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDHowett-MSFT
hostnamegithub.com
expected-hostnamegithub.com
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/11314#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F11314
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F11314
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/11314
Reloadhttps://github.com/PowerShell/PowerShell/issues/11314
Reloadhttps://github.com/PowerShell/PowerShell/issues/11314
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/11314
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/11314
#11959https://github.com/PowerShell/PowerShell/pull/11959
pwsh as a dotnet global tool exhibits very unusual behavior with Ctrl-Chttps://github.com/PowerShell/PowerShell/issues/11314#top
#11959https://github.com/PowerShell/PowerShell/pull/11959
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
7.1-Considerhttps://github.com/PowerShell/PowerShell/milestone/73
https://github.com/DHowett-MSFT
Dustin L. Howett (MSFT) (DHowett-MSFT)https://github.com/DHowett-MSFT
on Dec 10, 2019https://github.com/PowerShell/PowerShell/issues/11314#issue-535996017
dotnet tool shimhttps://github.com/adityapatwardhan/PowerShell/blob/master/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs
https://user-images.githubusercontent.com/14316954/70569164-43603900-1b4e-11ea-9102-e72dbc6d98a3.png
Dustin L. Howett (MSFT) (DHowett-MSFT)https://github.com/DHowett-MSFT
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
on Dec 10, 2019https://github.com/PowerShell/PowerShell/issues/11314#event-2872089163
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
7.1-Considerhttps://github.com/PowerShell/PowerShell/milestone/73
on Dec 10, 2019https://github.com/PowerShell/PowerShell/issues/11314#event-2872283248
Ilya (iSazonov)https://github.com/iSazonov
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
on Dec 11, 2019https://github.com/PowerShell/PowerShell/issues/11314#event-2873342336
https://github.com/Zenexer
Paul B (Zenexer)https://github.com/Zenexer
on Dec 19, 2019https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-567503529
#3869https://github.com/PowerShell/PowerShell/pull/3869
Windows Terminalhttps://github.com/microsoft/terminal/
https://github.com/Zenexer
Paul B (Zenexer)https://github.com/Zenexer
on Dec 19, 2019https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-567521680
https://github.com/bgshacklett
Brian G. Shacklett (bgshacklett)https://github.com/bgshacklett
on Dec 29, 2019https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-569524265
https://scoop.shhttps://scoop.sh
Scoophttps://scoop.sh/
https://github.com/DHowett-MSFT
Dustin L. Howett (MSFT) (DHowett-MSFT)https://github.com/DHowett-MSFT
on Dec 30, 2019https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-569586775
https://github.com/DenisBalan
Denis Balan (DenisBalan)https://github.com/DenisBalan
on Feb 1, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-581008260
https://user-images.githubusercontent.com/33955091/73589387-67048780-44de-11ea-86ba-886fb9a1af4b.png
https://github.com/DHowett-MSFT
Dustin L. Howett (MSFT) (DHowett-MSFT)https://github.com/DHowett-MSFT
on Feb 1, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-581071771
https://github.com/shanselman
Scott Hanselman (shanselman)https://github.com/shanselman
on Feb 15, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-586565136
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Kathleen Dollard (@KathleenDollard)https://github.com/KathleenDollard
https://user-images.githubusercontent.com/2892/74584220-b63dc400-4f84-11ea-9fea-a159b4ca3d4a.png
https://github.com/ssg
Sedat Kapanoğlu (ssg)https://github.com/ssg
on Feb 19, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-588063821
https://github.com/shanselman
Scott Hanselman (shanselman)https://github.com/shanselman
on Feb 19, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-588341534
Sedat Kapanoğlu (@ssg)https://github.com/ssg
https://github.com/inv2004
inv2004https://github.com/inv2004
on Feb 20, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-589398096
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Feb 20, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-589403734
https://github.com/inv2004
inv2004https://github.com/inv2004
on Feb 20, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-589404884
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Feb 20, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-589407279
inv2004https://github.com/inv2004
https://github.com/ssg
Sedat Kapanoğlu (ssg)https://github.com/ssg
on Feb 20, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-589410577
Scott Hanselman (@shanselman)https://github.com/shanselman
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7
https://camo.githubusercontent.com/78d8d028f1a7beab7d427e867be169d7ffef55cc82eebd33bdf34851afc0c81c/68747470733a2f2f646f63732e6d6963726f736f66742e636f6d2f656e2d75732f6d656469612f6c6f676f732f6c6f676f2d6d732d736f6369616c2e706e67
Installing PowerShell Core on Windows - PowerShellhttps://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows
https://github.com/shanselman
Scott Hanselman (shanselman)https://github.com/shanselman
on Feb 21, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-589452106
Sedat Kapanoğlu (@ssg)https://github.com/ssg
Sean Wheeler (@sdwheeler)https://github.com/sdwheeler
Kathleen Dollard (@KathleenDollard)https://github.com/KathleenDollard
Travis Plunk (TravisEz13)https://github.com/TravisEz13
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#11959https://github.com/PowerShell/PowerShell/pull/11959
on Feb 26, 2020https://github.com/PowerShell/PowerShell/issues/11314#event-3075856578
https://github.com/brad-jones
Brad Jones (brad-jones)https://github.com/brad-jones
on Feb 27, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-592195423
https://github.com/inv2004
inv2004https://github.com/inv2004
on Feb 27, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-592201224
Brad Jones (@brad-jones)https://github.com/brad-jones
https://github.com/burzum
burzumhttps://github.com/burzum
on Mar 2, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-593427125
Sedat Kapanoğlu (@ssg)https://github.com/ssg
https://github.com/pcgeek86
Trevor Sullivan (pcgeek86)https://github.com/pcgeek86
on May 8, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-625883106
https://user-images.githubusercontent.com/466713/81423590-8298b300-9109-11ea-8f08-6fd3b38ea1fc.png
https://user-images.githubusercontent.com/466713/81423596-862c3a00-9109-11ea-9df7-6a6c20cb3b35.png
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
https://github.com/f0ff886f
Matt Rusiniak (f0ff886f)https://github.com/f0ff886f
on May 8, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-625885483
ScoopInstaller/Scoop#3634https://github.com/ScoopInstaller/Scoop/issues/3634
https://github.com/pcgeek86
Trevor Sullivan (pcgeek86)https://github.com/pcgeek86
on May 8, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-625887071
https://github.com/f0ff886f
Matt Rusiniak (f0ff886f)https://github.com/f0ff886f
on May 8, 2020https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-625933865
Andreas Maechler (amaechler)https://github.com/amaechler
on Aug 5, 2020https://github.com/PowerShell/PowerShell/issues/11314#event-3626409897
Update terminal settingshttps://github.com/amaechler/dotfiles/commit/d0fa76f39aa5dfa5eb9f869ba1f182677dbe5508
d0fa76fhttps://github.com/amaechler/dotfiles/commit/d0fa76f39aa5dfa5eb9f869ba1f182677dbe5508
https://github.com/younger-1
Xavier Young (younger-1)https://github.com/younger-1
on Apr 24, 2021https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-826026194
https://github.com/spyder007
Matt Gerega (spyder007)https://github.com/spyder007
on Aug 11, 2021https://github.com/PowerShell/PowerShell/issues/11314#issuecomment-896836556
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/11314
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/11314
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get ahttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Question%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
7.1-Considerhttps://github.com/PowerShell/PowerShell/milestone/73
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.