Title: Passing parameters to $env:PAGER is broken in 6.2.0-preview.4 · Issue #8912 · PowerShell/PowerShell · GitHub
Open Graph Title: Passing parameters to $env:PAGER is broken in 6.2.0-preview.4 · Issue #8912 · PowerShell/PowerShell
X Title: Passing parameters to $env:PAGER is broken in 6.2.0-preview.4 · Issue #8912 · PowerShell/PowerShell
Description: 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: But in PS Core 6.2.0-preview.4 that s...
Open Graph Description: 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 pagin...
X Description: 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 du...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8912
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Passing parameters to $env:PAGER is broken in 6.2.0-preview.4","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n-->\r\nI 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:\r\n\r\n\r\n\r\nBut 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.\r\n\r\n# Steps to reproduce\r\nSet the following env var value.\r\n```powershell\r\n$env:PAGER = 'less \"-PPowerShell help page line %lt (press h for help or q to quit)\"'\r\n```\r\n\r\n# Expected behavior\r\nI get paging via less and with my desired footer.\r\n\r\n\r\n# Actual behavior\r\nmore.com is invoked instead.\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.2.0-preview.4\r\nPSEdition Core\r\nGitCommitId 6.2.0-preview.4\r\nOS Microsoft Windows 10.0.17763\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/rkeithhill","@type":"Person","name":"rkeithhill"},"datePublished":"2019-02-19T02:31:15Z","url":"https://github.com/PowerShell/PowerShell/issues/8912"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:94148183-0eec-b5e8-7dc0-be58aaa956f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7CE:364C19:2CD10:3EF6C:6AFD68B8 |
| html-safe-nonce | 106e38d3f85e70c39121aaf1923c4c1c257d1eefccb1455c330870cfb2c2291e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0NFOjM2NEMxOToyQ0QxMDozRUY2Qzo2QUZENjhCOCIsInZpc2l0b3JfaWQiOiIzMzExOTg0NDE2Mjk2NjI2MzYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e38b64b0231153a083260c04c3a186fa189c10c435b8114769e0fbfceb8d05c8 |
| hovercard-subject-tag | issue:411716901 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/8912/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0633c67026c589ba795fc7eaa2d85c80bb9fed1d06c2a96120fbe97c6494985f/PowerShell/PowerShell/issues/8912 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0633c67026c589ba795fc7eaa2d85c80bb9fed1d06c2a96120fbe97c6494985f/PowerShell/PowerShell/issues/8912 |
| og:image:alt | 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 pagin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rkeithhill |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9985ca2e21b59673104d4d830d4afeb946c67f248f273ab2e824c31c8db46e4a |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0db9e8d463c3f4540570e6ad3c501a06db9dc02a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width