Title: Out-Default -Transcript only suppresses the display of the success output stream · Issue #11135 · PowerShell/PowerShell · GitHub
Open Graph Title: Out-Default -Transcript only suppresses the display of the success output stream · Issue #11135 · PowerShell/PowerShell
X Title: Out-Default -Transcript only suppresses the display of the success output stream · Issue #11135 · PowerShell/PowerShell
Description: The purpose of Out-Default -Transcript is to record its input in the transcript only, without also printing it to the host (console). [Update: At least that's the inferred purpose, based on its behavior with success output]. Given that a...
Open Graph Description: The purpose of Out-Default -Transcript is to record its input in the transcript only, without also printing it to the host (console). [Update: At least that's the inferred purpose, based on its beh...
X Description: The purpose of Out-Default -Transcript is to record its input in the transcript only, without also printing it to the host (console). [Update: At least that's the inferred purpose, based on its...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11135
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out-Default -Transcript only suppresses the display of the success output stream","articleBody":"The purpose of `Out-Default -Transcript` is to record its input in the transcript _only_, without also _printing it to the host_ (console). [_Update_: At least that's the _inferred_ purpose, based on its behavior with success output].\r\n\r\nGiven that _all_ output streams are transcribed, it would make sense to also suppress host output for _all_ streams. However, only the _success_ output stream is currently silenced.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n$file = [IO.Path]::GetTempFileName()\r\nStart-Transcript $file\r\n\r\nGet-Item /, /NoSuch | Out-Default -Transcript\r\n\r\nStop-Transcript\r\nRemove-Item $file\r\n```\r\n\r\n# Expected behavior\r\n\r\nThe `Get-Item` command should produce no output.\r\n\r\n# Actual behavior\r\n\r\nOnly `Get-Item` success output is silenced, but the error message still displays:\r\n\r\n```none\r\nGet-Item: Cannot find path '/NoSuch' because it does not exist.\r\n```\r\n\r\n# Environment data\r\n\r\n```none\r\nPowerShell Core 7.0.0-preview.5\r\n```\r\n\r\nWindows PowerShell is equally affected.\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-11-20T17:15:31Z","url":"https://github.com/PowerShell/PowerShell/issues/11135"}
| 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:70c1ce5a-48da-d080-33d5-a70097a0e2ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE06:1ABC75:1C81966:27E0DF9:6AFD1237 |
| html-safe-nonce | dd02f0fb7c5fde9fd37ea90409a91367587c72366d9f0d8217e07b3a8a3f6b3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTA2OjFBQkM3NToxQzgxOTY2OjI3RTBERjk6NkFGRDEyMzciLCJ2aXNpdG9yX2lkIjoiNTk1NDgyMzU2NDcxNTQzMDQ1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6520448364cdead3659c3a77476f699de0f9a0e3d818eccb232bdde3482a34ad |
| hovercard-subject-tag | issue:525948323 |
| 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/11135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f691281c545c51426f0ef4c027d905281121d49caea31a0ad3572c0d3c6f1a91/PowerShell/PowerShell/issues/11135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f691281c545c51426f0ef4c027d905281121d49caea31a0ad3572c0d3c6f1a91/PowerShell/PowerShell/issues/11135 |
| og:image:alt | The purpose of Out-Default -Transcript is to record its input in the transcript only, without also printing it to the host (console). [Update: At least that's the inferred purpose, based on its beh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width