Skip to content

Custom prompt with newline on macOS gets corrupted on entry #2770

@eamodio

Description

@eamodio

Steps to reproduce

  1. Have a custom prompt with a new line:
~/foo
> |
  1. All looks fine, but as soon as you start to type, the > will start being replaced by the line above (assuming you typed q):
~/foo
~/q

Expected behavior

~/foo
> q

Actual behavior

~/foo
~/q

Environment data

macOS Sierra 10.12.1 (16B2555)

> $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.13                                     
CLRVersion                                                                         
WSManStackVersion              3.0                                                 
PSRemotingProtocolVersion      2.3                                                 
SerializationVersion           1.1.0.1   

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions