Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Line continuation with line-initial | (pipe symbol) not recognized on Unix-like platforms. #1261

Copy link
Copy link
@mklement0

Description

@mklement0
Issue body actions

PS Core now supports continuing a pipeline by placing the | at the start of the following line.

On Windows pasting such a pipeline works fine, but not on Unix-like platforms (macOS, Linux).

Environment data

PS version: 7.0.0-rc.1
PSReadline version: 2.0.0-rc1
os: Darwin MkiMac.home 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64
PS file version: 7.0.0.0
HostName: ConsoleHost
BufferWidth: 180
BufferHeight: 60

Steps to reproduce or exception report

On macOS or Linux, paste the following in a PowerShell terminal:

Get-Date
  | % ToUniversalTime

This works fine on Windows, but on Unix-like platforms the 2nd line is unexpectedly treated as a new command, which predictably fails:

ParserError:
Line |
   1 |   | % ToUniversalTime
     |   ^ An empty pipe element is not allowed.
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.