Skip to content

Linux Enviroment Variable $env:ComputerName is missing  #2312

@MaximoTrinidad

Description

@MaximoTrinidad

Steps to reproduce

In Windows OS PowerShell, type: $env:COMPUTERNAME or hostname.
Result = Earth

In Ubuntu Linux 16.04.1, type:
$env:computername (of course it doesn't exist)
or
hostname
Result = orion

Expected behavior

In Linux to see the $env:computername variable and its value.
Is it possible to use the 'hostname' value to create the $env:COMPUTERNAME variable?

Actual behavior

$env:computername (of course it doesn't exist)
or
hostname
Result = orion

See attached images
posh610_misscompname

Environment data

Linux: Ubuntu 16.04.1 64bit

PS /home/maxt> $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.10
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-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