Skip to content

The output of help command is one letter per line #2909

Closed

Description

@yanxyz

Run help command:

> help cd

20161220_194627

The one on the right is the latest PowerShell:

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
BuildVersion                   3.0.0.0
SerializationVersion           1.1.0.1
PSRemotingProtocolVersion      2.3
WSManStackVersion              3.0
CLRVersion
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
GitCommitId                    v6.0.0-alpha.14
PSEdition                      Core

The one on the left is system embeded PowerShell:

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.576
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.576
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

My OS is Windows 10 x64 Chinese language.

The Get-Help cmdlet has no problem.

Activity

  1. added
    WG-Interactive-HelpSystem
    on Dec 20, 2016
  2. added this to the milestone on Dec 20, 2016
  3. randomvariable commented on Dec 20, 2016

    @randomvariable
    Contributor

    Just looking at #2809. Is this because on Windows, the help file gets piped into more, and this doesn't support unicode properly, and is it an issue for the command prompt team?

  4. modified the milestones: 6.0.0-beta1, on Mar 16, 2017
  5. modified the milestones: , on May 15, 2017
  6. modified the milestones: , on May 16, 2017
  7. chunqingchen commented on Jun 7, 2017

    @chunqingchen
    Contributor

    Aditya Patwardhan (@adityapatwardhan)
    After investigating on the issue I would agree with Naadir Jeewa (@randomvariable)
    There's no difference at the help information we try to writeObject() to console between help and get-help the only difference is the "pipe into more" and it is specific to cmd window.

    There are several work arounds to resolve this issue:

    1. Start the new Powershell core in a embeded Powershell console instead of the cmd window.

    2. In the "Language for non-Unicode programs" selection, select the language for non-Unicode programs as English. Then the cmd also works. (as attached screen shot)
      image

    3. Use get-help instead of help to skip the "pipe into more".

    I would suggest set the resolution as external for this issue as it is not powershell specific.

  8. added
    Resolution-External
    on Jun 7, 2017
  9. chunqingchen commented on Jun 9, 2017

    @chunqingchen
    Contributor

    Ivan Yan (@yanxyz) can we close the issue?

  10. SteveL-MSFT commented on Jun 9, 2017

    @SteveL-MSFT
    Member

    Chunqing Chen (@chunqingchen) I don't think that's a viable workaround. if more has an issue, then we should have help have a dependency on more.

  11. removed
    Resolution-External
    on Jun 9, 2017
  12. yanxyz commented on Jun 9, 2017

    @yanxyz
    Author

    Chunqing Chen (@chunqingchen) thanks. I have no idea the inner detail. As a normal user I'm just curious about why it doesn't work after update. I have tried the second method you mentioned, it works.

    You could close this issue when you think it is OK.

    Update: after I change "Language for non-Unicode programs" to English, the "Consolas" font is ugly for Chinese characters.

  13. iSazonov commented on Aug 16, 2017

    @iSazonov
    Collaborator

    Chunqing Chen (@chunqingchen) Can we close the Issue as resolved?

  14. added
    Resolution-Fixed
    and removed
    Resolution-Fixed
    on Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-FixedWG-Interactive-HelpSystem

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions