Skip to content

Powershell Prompt Double Execution #468

@lzybkr

Description

@lzybkr

From @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

  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       

Copied from original issue: PowerShell/PowerShell#1897

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions