Skip to content

while help an alias with *ending,like help dir* or help ls*,the output is in confusion #8541

Closed

Description

@bahuwang

Steps to reproduce

help dir*

Expected behavior

PS C:\Users\bahuwang> help dir*
Name          : dir
Category      : Alias
Synopsis      : Get-ChildItem
Component     :
Role          :
Functionality :
PS C:\Users\bahuwang>

Actual behavior

PS C:\Users\bahuwang> help dir*
PS C:\Users\bahuwang>
Name          : dir
Category      : Alias
Synopsis      : Get-ChildItem
Component     :
Role          :
Functionality :

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.0-preview.3
PSEdition                      Core
GitCommitId                    6.2.0-preview.3
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    WG-Engine
    on Dec 28, 2018
  2. iSazonov commented on Dec 28, 2018

    @iSazonov
    Collaborator

    Perhaps it come from #8247. /cc Steve Lee (@SteveL-MSFT)

  3. added
    Issue-Bug
    on Dec 28, 2018
  4. SteveL-MSFT commented on Dec 28, 2018

    @SteveL-MSFT
    Member

    The way the help function works is that if a single item is returned, it passes it through the default pager. In this case, if AliasHelpInfo is returned, it should probably just be output to the console as the content is too small to pass to a pager. It would then have the same behavior as get-help dir*. This is different than #8247.

  5. adityapatwardhan commented on Jan 10, 2019

    @adityapatwardhan
    Member

    Steve Lee (@SteveL-MSFT) I believe this can be closed now.

  6. yecril71pl commented on Jul 22, 2020

    @yecril71pl
    Contributor

    I would expect command help to be displayed if there is only one help item found. I find the alias record pretty useless. And the result of HELP DIR* -S is utter disaster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-BugResolution-FixedWG-Engine

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions