You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are the Utils PowerShell Core Depends on in Linux managed and published? #9830
The Get-Help on Linux Depends on "less" command - this is an Amazon Linux 2 container (which - as provided by AWS - has a completely minimalized package footprint) and I get this error:
This raises the questions:
is there a managed list of what PowerShell core assumes is on the system?
shouldn't the packages for PowerShell Core check for and resolve these dependencies if system commands depend on them?
or should it just not depend on any OS packages?
Apologies if this is covered somewhere - if so, please drop a link in this issue :)
I have raised a concern related specifically to the availability of less/more here before: #7851
FWIW it's not Get-Help that has this dependency; it's the help function, which is actually a function and not a true alias. Get-Help on its own normally does not provide paging.
I'm of the opinion that PS should not be dependent on any OS-specific packages that it is not itself providing in the installation.
Activity
vexx32 commentedon Jun 5, 2019
I have raised a concern related specifically to the availability of
less/morehere before: #7851FWIW it's not
Get-Helpthat has this dependency; it's thehelpfunction, which is actually a function and not a true alias.Get-Helpon its own normally does not provide paging.I'm of the opinion that PS should not be dependent on any OS-specific packages that it is not itself providing in the installation.
iSazonov commentedon Jan 30, 2020
/cc Steve Lee (@SteveL-MSFT) for any conclusion. Should we fix the dependency? Should we document dependencies?
SteveL-MSFT commentedon Jan 31, 2020
It seems we can resolve this by checking if
lessis available before using it, otherwise, just don't page.iSazonov commentedon Jan 31, 2020
It seems we already check if
lessor another pager present.