René's URL Explorer Experiment


Title: Beta.9 - Module PSReadLine impacting ifelse block structure · Issue #575 · PowerShell/PSReadLine · GitHub

Open Graph Title: Beta.9 - Module PSReadLine impacting ifelse block structure · Issue #575 · PowerShell/PSReadLine

X Title: Beta.9 - Module PSReadLine impacting ifelse block structure · Issue #575 · PowerShell/PSReadLine

Description: Current PowerShell behavior is to automatically load the PSReadLine module. But, this module is breaking the if-else block of code when using Copy/Paste into the PowerShell Console. Steps to reproduce Open PowerShell "pwsh" Console. Copy...

Open Graph Description: Current PowerShell behavior is to automatically load the PSReadLine module. But, this module is breaking the if-else block of code when using Copy/Paste into the PowerShell Console. Steps to reprod...

X Description: Current PowerShell behavior is to automatically load the PSReadLine module. But, this module is breaking the if-else block of code when using Copy/Paste into the PowerShell Console. Steps to reprod...

Opengraph URL: https://github.com/PowerShell/PSReadLine/issues/575

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Beta.9 - Module PSReadLine impacting ifelse block structure","articleBody":"\u003c!--\r\nBefore submitting your bug report, please check for duplicates, and +1 the duplicate if you find one, adding additional details if you have any to add.\r\n\r\nThere are a few common issues that are commonly reported.\r\n\r\nIf there is an exception copying to/from the clipboard, it's probably the same as https://github.com/lzybkr/PSReadLine/issues/265\r\n\r\nIf there is an exception shortly after resizing the console, it's probably the same as https://github.com/lzybkr/PSReadLine/issues/292\r\n--\u003e\r\n\r\nCurrent PowerShell behavior is to automatically load the PSReadLine module. But, this module is breaking the if-else block of code when using Copy/Paste into the PowerShell Console.\r\n\r\nSteps to reproduce\r\n------------------\r\n1. Open PowerShell \"**pwsh**\" Console.\r\n2. Copy/Paste the following code into the Console:\r\n```powershell\r\n## - Code Snippet will verify if NuGet is already installed:\r\nif (-not (Get-PackageSource | Where-Object{$_.Name -eq 'Nuget'})) \r\n{\r\n    Register-PackageSource -Name Nuget -ProviderName NuGet -Location https://www.nuget.org/api/v2\r\n}\r\nelse\r\n{\r\n    Write-Host \"NuGet Already Exist! No Need to install.\"\r\n}\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nProcess the code without errors.\r\n\r\nBelow, the results of executing the \"if-else\" block without errors, after executing \"**Remove-Module PSReadLine**\"\r\n```Results\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e if (-not (Get-PackageSource | Where-Object{$_.Name -eq 'Nuget'}))\r\n\u003e\u003e {\r\n\u003e\u003e     Register-PackageSource -Name Nuget -ProviderName NuGet -Location https://www.nuget.org/api/v2\r\n\u003e\u003e }\r\n\u003e\u003e else\r\n\u003e\u003e {\r\n\u003e\u003e     Write-Host \"NuGet Already Exist! No Need to install.\"\r\n\u003e\u003e }\r\n\u003e\u003e\r\nNuGet Already Exist! No Need to install.\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e\r\n\r\n```\r\n\r\nActual behavior\r\n---------------\r\nPaste code stopped executing after it reads the \"else\".\r\n```none\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e if (-not (Get-PackageSource | Where-Object{$_.Name -eq 'Nuget'}))\r\n\u003e\u003e {\r\n\u003e\u003e     Register-PackageSource -Name Nuget -ProviderName NuGet -Location https://www.nuget.org/api/v2\r\n\u003e\u003e }\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e else\r\nelse : The term 'else' is not recognized as the name of a cmdlet, function, script file, or operable program.\r\nCheck the spelling of the name, or if a path was included, verify that the path is correct and try again.\r\nAt line:1 char:1\r\n+ else\r\n+ ~~~~\r\n    + CategoryInfo          : ObjectNotFound: (else:String) [], CommandNotFoundException\r\n    + FullyQualifiedErrorId : CommandNotFoundException\r\n\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e {\r\n\u003e\u003e     Write-Host \"NuGet Already Exist! No Need to install.\"\r\n\u003e\u003e }\r\n\r\n    Write-Host \"NuGet Already Exist! No Need to install.\"\r\n\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\nOS: \r\nWindows 10 Insider Build 1702\r\nUbuntu 16.04.3\r\n\r\nPowerShell Core Beta.9\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n``` Windows Powershell\r\n## - Windows PowerShell Core\r\nPS C:\\Program Files\\PowerShell\\6.0.0-beta.9\u003e $PSVersionTable\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      6.0.0-beta.9\r\nPSEdition                      Core\r\nGitCommitId                    v6.0.0-beta.9\r\nOS                             Microsoft Windows 10.0.17025\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```\r\n``` Linux PowerShell\r\n## - Linux PowerShell Core\r\nPS /home/maxt\u003e $PSVersionTable                                                                                           \r\n\r\nName                           Value                                                                                    \r\n----                           -----                                                                                    \r\nPSVersion                      6.0.0-beta.9                                                                             \r\nPSEdition                      Core                                                                                     \r\nGitCommitId                    v6.0.0-beta.9                                                                            \r\nOS                             Linux 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017              \r\nPlatform                       Unix                                                                                     \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```\r\n![if-else_01_2017-11-06_18-25-39](https://user-images.githubusercontent.com/19892435/32469862-a26fee62-c322-11e7-8c62-f52465205715.png)\r\n","author":{"url":"https://github.com/MaximoTrinidad","@type":"Person","name":"MaximoTrinidad"},"datePublished":"2017-11-07T00:41:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/575/PSReadLine/issues/575"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e6307fb6-f38e-2348-3e41-fa7213c95b1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD03C:F3CF:2A6978:3D0E34:6A59D845
html-safe-nonceb9e6394c0d9dbf6509d2b07acb834f952cc2d3a3750ca9338dc93173d407affa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDNDOkYzQ0Y6MkE2OTc4OjNEMEUzNDo2QTU5RDg0NSIsInZpc2l0b3JfaWQiOiI4OTI4MjE1OTU0NzA4MDkyOTk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9c23af931e336c2a9d7a6b586584248208d2087c43c9c0f597544bba555cbd45
hovercard-subject-tagissue:271671237
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/PSReadLine/575/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2eb65da6cef63269d8a1feec6297edbf97c593e753b4b713fece76cfc412f227/PowerShell/PSReadLine/issues/575
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2eb65da6cef63269d8a1feec6297edbf97c593e753b4b713fece76cfc412f227/PowerShell/PSReadLine/issues/575
og:image:altCurrent PowerShell behavior is to automatically load the PSReadLine module. But, this module is breaking the if-else block of code when using Copy/Paste into the PowerShell Console. Steps to reprod...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMaximoTrinidad
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PSReadLine git https://github.com/PowerShell/PSReadLine.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id10025737
octolytics-dimension-repository_nwoPowerShell/PSReadLine
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id10025737
octolytics-dimension-repository_network_root_nwoPowerShell/PSReadLine
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
releasebfacf98c3b7ad151665d6ddd216469389872b251
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PSReadLine/issues/575#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSReadLine%2Fissues%2F575
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSReadLine%2Fissues%2F575
Sign up https://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%2FPSReadLine
Reloadhttps://github.com/PowerShell/PSReadLine/issues/575
Reloadhttps://github.com/PowerShell/PSReadLine/issues/575
Reloadhttps://github.com/PowerShell/PSReadLine/issues/575
Please reload this pagehttps://github.com/PowerShell/PSReadLine/issues/575
PowerShell https://github.com/PowerShell
PSReadLinehttps://github.com/PowerShell/PSReadLine
Notifications https://github.com/login?return_to=%2FPowerShell%2FPSReadLine
Fork 329 https://github.com/login?return_to=%2FPowerShell%2FPSReadLine
Star 4.3k https://github.com/login?return_to=%2FPowerShell%2FPSReadLine
Code https://github.com/PowerShell/PSReadLine
Issues 251 https://github.com/PowerShell/PSReadLine/issues
Pull requests 17 https://github.com/PowerShell/PSReadLine/pulls
Discussions https://github.com/PowerShell/PSReadLine/discussions
Actions https://github.com/PowerShell/PSReadLine/actions
Projects https://github.com/PowerShell/PSReadLine/projects
Wiki https://github.com/PowerShell/PSReadLine/wiki
Security and quality 0 https://github.com/PowerShell/PSReadLine/security
Insights https://github.com/PowerShell/PSReadLine/pulse
Code https://github.com/PowerShell/PSReadLine
Issues https://github.com/PowerShell/PSReadLine/issues
Pull requests https://github.com/PowerShell/PSReadLine/pulls
Discussions https://github.com/PowerShell/PSReadLine/discussions
Actions https://github.com/PowerShell/PSReadLine/actions
Projects https://github.com/PowerShell/PSReadLine/projects
Wiki https://github.com/PowerShell/PSReadLine/wiki
Security and quality https://github.com/PowerShell/PSReadLine/security
Insights https://github.com/PowerShell/PSReadLine/pulse
Beta.9 - Module PSReadLine impacting ifelse block structurehttps://github.com/PowerShell/PSReadLine/issues/575#top
https://github.com/MaximoTrinidad
MaximoTrinidadhttps://github.com/MaximoTrinidad
on Nov 7, 2017https://github.com/PowerShell/PSReadLine/issues/575#issue-271671237
https://user-images.githubusercontent.com/19892435/32469862-a26fee62-c322-11e7-8c62-f52465205715.png
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.