Title: New-FileCatalog ignores -WhatIf · Issue #2866 · PowerShell/PowerShell · GitHub
Open Graph Title: New-FileCatalog ignores -WhatIf · Issue #2866 · PowerShell/PowerShell
X Title: New-FileCatalog ignores -WhatIf · Issue #2866 · PowerShell/PowerShell
Description: Steps to reproduce C:\PS> Get-Date > Date.tmp C:\PS> New-FileCatalog -CatalogVersion 2 -CatalogFilePath catalog.cat -Path Date.tmp -WhatIf Expected behavior What if: Performing the operation "Create new file catalog" on target "C:\PS\cat...
Open Graph Description: Steps to reproduce C:\PS> Get-Date > Date.tmp C:\PS> New-FileCatalog -CatalogVersion 2 -CatalogFilePath catalog.cat -Path Date.tmp -WhatIf Expected behavior What if: Performing the operation "Creat...
X Description: Steps to reproduce C:\PS> Get-Date > Date.tmp C:\PS> New-FileCatalog -CatalogVersion 2 -CatalogFilePath catalog.cat -Path Date.tmp -WhatIf Expected behavior What if: Performing the operati...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2866
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New-FileCatalog ignores -WhatIf","articleBody":"\u003c!--\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](../docs/FAQ.md).\r\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\r\n- Fill out the following repro template\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n-->\r\n\r\nSteps to reproduce\r\n------------------\r\n```powershell\r\nC:\\PS> Get-Date > Date.tmp\r\nC:\\PS> New-FileCatalog -CatalogVersion 2 -CatalogFilePath catalog.cat -Path Date.tmp -WhatIf\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```powershell\r\nWhat if: Performing the operation \"Create new file catalog\" on target \"C:\\PS\\catalog.cat\".\r\n```\r\n\r\nActual behavior\r\n---------------\r\n```powershell\r\nMode LastWriteTime Length Name \r\n---- ------------- ------ ---- \r\n-a---- 12/9/2016 12:37 PM 433 catalog.cat\r\n```\r\n\r\nYou can see the file has been created. \r\nThe Hash is also being calculated too. \r\n\r\n```powershell\r\nC:\\PS> Test-FileCatalog -Detailed -CatalogFilePath catalog.cat \r\n\r\nStatus : Valid\r\nHashAlgorithm : SHA256\r\nCatalogItems : {[Date.tmp, 2F38E0FD77AF90E6E463938C4D4ED9AE03F575AC7C0441C6A3DBE9A1C4D55459]}\r\nPathItems : {[Date.tmp, 2F38E0FD77AF90E6E463938C4D4ED9AE03F575AC7C0441C6A3DBE9A1C4D55459]}\r\nSignature : System.Management.Automation.Signature\r\n\r\nC:\\PS> Get-FileHash -Path Date.tmp\r\n\r\nAlgorithm : SHA256\r\nHash : 2F38E0FD77AF90E6E463938C4D4ED9AE03F575AC7C0441C6A3DBE9A1C4D55459\r\nPath : C:\\Temp\\Demo\\Date.tmp\r\n\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName Value \r\n---- ----- \r\nPSVersion 5.1.14393.206 \r\nPSEdition Desktop \r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.14393.206 \r\nCLRVersion 4.0.30319.42000 \r\nWSManStackVersion 3.0 \r\nPSRemotingProtocolVersion 2.3 \r\nSerializationVersion 1.1.0.1 \r\n\r\n```\r\n","author":{"url":"https://github.com/PatrickFB","@type":"Person","name":"PatrickFB"},"datePublished":"2016-12-09T17:59:56Z","url":"https://github.com/PowerShell/PowerShell/issues/2866"}
| 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:90c62e5c-3192-e797-6829-ecc16ff29435 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A24A:47F34:42B5BE:5FFBAD:6AFD6CCC |
| html-safe-nonce | 41329d740114dde60176f952f9d337bceeb1665cada70d6b2ecc1c91d709a9df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjRBOjQ3RjM0OjQyQjVCRTo1RkZCQUQ6NkFGRDZDQ0MiLCJ2aXNpdG9yX2lkIjoiNjQyOTU3NTAxNjA5MzY3NDcwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | adf319e5fedc0522ac6cf9ec8eb13e712db00de030957114ae107486e56a672f |
| hovercard-subject-tag | issue:194659051 |
| 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/2866/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b71446f9b19ffcdbabb0646cdc94f9a34e73458fbcbadd4fcccb60a532428c2/PowerShell/PowerShell/issues/2866 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b71446f9b19ffcdbabb0646cdc94f9a34e73458fbcbadd4fcccb60a532428c2/PowerShell/PowerShell/issues/2866 |
| og:image:alt | Steps to reproduce C:\PS> Get-Date > Date.tmp C:\PS> New-FileCatalog -CatalogVersion 2 -CatalogFilePath catalog.cat -Path Date.tmp -WhatIf Expected behavior What if: Performing the operation "Creat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PatrickFB |
| 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