Skip to content

on Linux, "gin" alias points to Get-ComputerInfo that's still unsupported #3577

Closed

Description

Get-ComputerInfo isn't supported on Linux currently, however, gin alias points to it. gin alias should be removed (for now).

Steps to reproduce

PS /> gin
gin : The term 'Get-ComputerInfo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Expected behavior

PS /> get-alias gin
get-alias : This command cannot find a matching alias because an alias with the name 'gin' does not exist.

Actual behavior

PS /> get-alias gin

CommandType     Name
-----------     ----
Alias           gin -> Get-ComputerInfo

Environment data

PS /> $PSVersionTable

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

Activity

  1. added
    Issue-Question
    on Apr 17, 2017
  2. iSazonov commented on Apr 17, 2017

    @iSazonov
    Collaborator

    Joey Aiello (@joeyaiello) Steve Lee (@SteveL-MSFT) Have we plans to port Get-ComputerInfo before RTM?

  3. joeyaiello commented on Apr 17, 2017

    @joeyaiello
    Contributor

    I don't believe so. And really, if we're not planning to get it working, we shouldn't just remove the alias, we should remove the cmdlet.

  4. iSazonov commented on Apr 17, 2017

    @iSazonov
    Collaborator

    Joey Aiello (@joeyaiello) Please clarify - remove from Windows too?

  5. MaximoTrinidad commented on Apr 17, 2017

    @MaximoTrinidad

    Hum! How about to mimic the series of Linux commands to list the Linux distro system configurations?
    I don't think it need to be removed. As long as it can point to these Linux commands:

    lscpu
    cat /proc/cpuinfo
    cat /proc/meminfo
    cat /proc/version
    cat /etc/issue

    That's my take!

  6. joeyaiello commented on Apr 17, 2017

    @joeyaiello
    Contributor

    Ilya (@iSazonov) no, just on Linux. We've got plenty of cmdlets exported there that aren't exported on Linux, we should just add it to that list.

  7. joeyaiello commented on Apr 17, 2017

    @joeyaiello
    Contributor

    Maximo Trinidad (@MaximoTrinidad) I want to do that at some point, but it's really tricky considering how differently so much of that information is handled across distros/versions of Linux (especially in today's post-systemd world).

  8. iSazonov commented on Apr 17, 2017

    @iSazonov
    Collaborator

    /proc is exposed by kernel so it would be "standard".

  9. joeyaiello commented on Apr 17, 2017

    @joeyaiello
    Contributor

    Good to know. Unfortunately, my knowledge of Linux systems management is pretty ad-hoc, and I've personally never leveraged /proc (I just use the GNU utils that probably read from it).

    In any case, I think it's up-for-grabs and/or post-6.0.

  10. MaximoTrinidad commented on Apr 17, 2017

    @MaximoTrinidad

    Well, I think the Linux System Admin will definitely appreciate that there's a cmdlet that will provide system information on any Linux distros in a generic way. It really doesn't need to match Windows format.
    :)

  11. jeffbi commented on Apr 17, 2017

    @jeffbi

    /proc is standard on Linux, but not on OS X, which is BSD-based. There would need to be a completely different implementation to support OS X.

  12. alexandair commented on Apr 17, 2017

    @alexandair
    ContributorAuthor

    Joey Aiello (@joeyaiello) Get-ComputerInfo is already removed from Linux. I've opened this issue to remove the "gin" alias as well.

  13. joeyaiello commented on Apr 17, 2017

    @joeyaiello
    Contributor

    Aleksandar Nikolić (@alexandair) ah, gotcha. That makes a lot more sense. Yeah, let's just do that. Easy to fix.

  14. added
    WG-Cmdlets
    Issue-Bug
    Up-for-Grabs
    and removed
    Issue-Question
    on Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugResolution-FixedUp-for-GrabsWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions