Powershell Prompt Double Execution
See original GitHub issueFrom @whatevergeek on August 18, 2016 18:44
Version: powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb Platform: Ubuntu 14.04
Steps to reproduce
- Modify $profile file and add the following function inside function prompt { Write-Host (“This>”) return " " }
- Exit and re-enter powershell
- Check the commandline prompt
Expected behavior
It should only print “This>” once.
Actual behavior
It prints “This>” twice.
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.9
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Copied from original issue: PowerShell/PowerShell#1897
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:43 (27 by maintainers)
Top Results From Across the Web
Is there a way to make a PowerShell script work by double ...
cmd file from explorer or run the .cmd from a command prompt. I use the same base name because the .cmd file will...
Read more >How do I run multiple commands on one line in PowerShell?
Use a semicolon to chain commands in PowerShell: ipconfig /release; ipconfig /renew.
Read more >PowerShell prompt to continue execution of code
Another simple solution would be to use: Read-Host -Prompt "Press any key to continue or CTRL+C to quit" | Out-Null.
Read more >about Prompts - PowerShell
Built-in prompt ... PowerShell includes a built-in Prompt function. ... If $PSDebugContext isn't populated, the function adds PS to the prompt. And, the...
Read more >Always automatically execute PowerShell script *.ps1 by ...
Is there really to way to make an execution easier? I can imagine that there is a solution to automatically (!) pass the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll have an official prerelease build out next week if you want to verify this is fixed, otherwise you can grab a build out of appveyor here.
@SteveL-MSFT Cool, thank you for calling that out!