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

Some rows are invisible in output of long string of «Select-String» #19231

Copy link
Copy link
@u20221022

Description

@u20221022
Issue body actions

Prerequisites

Steps to reproduce

Host

Name             : ConsoleHost
Version          : 7.3.3
InstanceId       : b895a510-c2ac-4215-92f1-de9fcfe0c309
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : ru-RU
CurrentUICulture : ru-RU
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace


"12" + "1"*((((Host).UI.RawUI.WindowSize.Width - 1) * 3) - 2) | Select-String -Pattern "2"

12111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

"12" + "1"*((((Host).UI.RawUI.WindowSize.Width - 1) * 3) - 1) | Select-String -Pattern "2"

12111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

1

Expected behavior

All rows are visible.

Actual behavior

All rows are invisible except the first, second, and last rows.

Error details

Exception             :
    Type    : System.InvalidOperationException
    Message : You must specify an object for the Get-Member cmdlet.
    HResult : -2146233079
CategoryInfo          : CloseError: (:) [Get-Member], InvalidOperationException
FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand
InvocationInfo        :
    MyCommand        : Get-Member
    ScriptLineNumber : 1
    OffsetInLine     : 18
    HistoryId        : 31
    Line             : (Host).UI.Name | Get-Member
    PositionMessage  : At line:1 char:18
                       + (Host).UI.Name | Get-Member
                       +                  ~~~~~~~~~~
    InvocationName   : Get-Member
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

2023-02-27_2-28-12

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.

    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.