Skip to content

Powershell Prompt Double Execution #1897

Description

@whatevergeek

Version: powershell_6.0.0-alpha.9-1ubuntu1.14.04.1_amd64.deb
Platform: Ubuntu 14.04

Steps to reproduce

  1. Modify $profile file and add the following function inside
    function prompt
    {
    Write-Host ("This>")
    return " "
    }
  2. Exit and re-enter powershell
  3. 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       

Metadata

Metadata

Labels

Issue-BugIssue has been identified as a bug in the productResolution-ExternalThe issue is caused by external component(s).WG-Interactive-PSReadLinePSReadline related issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions