8000 GitHub · Where software is built
[go: up one dir, main page]

Skip to content

Passing parameters to $env:PAGER is broken in 6.2.0-preview.4 #8912

@rkeithhill

Description

@rkeithhill

I have $env:PAGER set to less "-PPowerShell help page line %lt (press h for help or q to quit)" and on PS Core 6.1.0 on Windows 10 1809, PS Core uses less and gives me this nice footer during paging:

image

But in PS Core 6.2.0-preview.4 that same env var setting, causes more.com to be invoked. That is rather rude - ignoring my less preference.

Steps to reproduce

Set the following env var value.

$env:PAGER = 'less "-PPowerShell help page line %lt (press h for help or q to quit)"'

Expected behavior

I get paging via less and with my desired footer.

Actual behavior

more.com is invoked instead.

Environment data

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0