Skip to content

Tee-Object should have a -Console parameter #19827

@iRon7

Description

@iRon7

Summary of the new feature / enhancement

From the PowerShell for every system! idea, Tee-Object shouldn't need a system specific value expression to output to a console (and the pipeline) but simply tee the object to both the success stream and the information stream.

Get-Content data.txt | Tee-Object ($IsWindows ? '\\.\CON': '/dev/tty')  | data_processor.exe

Proposed technical implementation details (optional)

Wishful thinking:
(see: Can you redirect Tee-Object to standard out?)

Get-Content data.txt | Tee-Object -Console | data_processor.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesWG-ReviewedA Working Group has reviewed this and made a recommendation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions