Skip to content

Output format misalignment #6766

@jianyunt

Description

@jianyunt

There is misalignment in pwsh-bash cloudshell. The version used is v6.1.0-preview.2.

image

I did initial investigation, it 's likely the issue got introduced by the PR:
#6504

From my vscode, you can see col =0, and lastColWithContent[row]) = 0, so Line 357 gets executed. As a result, "+ " gets TrimEnd().

image

Line 303 did not get called.

image

Steps to reproduce

So far I only see the issue on cloudshell. I am not sure other simple way to repro it.

  1. pwsh preview-2
  2. Install-module azurerm.netcore
  3. install-module ships
  4. install-module Azurepsdrive
  5. ipmo ships
  6. AzureRM.Profile.NetCore\Login-AzureRMAccount
  7. ipmo AzurePSDrive
  8. New-psdrive -name Azure -psprovider SHiPS -root 'Azurepsdrive#Azure'

cd to Azure: and dir
PS Azure:\AutomationTeam> dir

Expected behavior


Actual behavior


Environment data

> $PSVersionTable
v6.1.0-preview.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-DuplicateThe issue is a duplicate.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions