Skip to content

Help function should only pass content to pager if content was found#8528

Merged
adityapatwardhan merged 1 commit intoPowerShell:masterfrom
SteveL-MSFT:help-error
Jan 8, 2019
Merged

Help function should only pass content to pager if content was found#8528
adityapatwardhan merged 1 commit intoPowerShell:masterfrom
SteveL-MSFT:help-error

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Dec 22, 2018

The help function assumes that if a list isn't returned then it's help content and pipes it to the pager. It does not consider the case where the help content wasn't found. Fix is to use the pager only if help content was returned.

PR Summary

Fix #8524

PR Checklist

help function should only pass content to pager if content was found
@iSazonov
Copy link
Collaborator

Restart CI-windows.

@adityapatwardhan adityapatwardhan added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Jan 8, 2019
@adityapatwardhan adityapatwardhan merged commit 64fcddc into PowerShell:master Jan 8, 2019
@SteveL-MSFT SteveL-MSFT deleted the help-error branch June 6, 2020 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"help" command on Linux shouldn't run "less" command in case of HelpNotFoundException

4 participants

Comments