Skip to content

Honor inherited information suppression on Windows PowerShell 5.1 - #27

Merged
PrzemyslawKlys merged 1 commit into
masterfrom
fix/host-information-action
Oct 6, 2026
Merged

PrzemyslawKlys merged 1 commit into
masterfrom
fix/host-information-action

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

When an enclosing command uses -InformationAction Ignore, Windows PowerShell 5.1 rejects inherited Ignore in nested Write-Host and Write-Information calls. Write-Color now suppresses Host and Information rendering for both direct and inherited Ignore preferences. Output and Verbose messages remain independent, file logging continues, and subsequent calls retain their normal preferences.

This closes the merged-package compatibility failure found while preparing O365Synchronizer PR #55 for issue #52. It follows PSWriteColor PR #26. PSWriteColor owns stream suppression; O365Synchronizer consumes the fixed owner and requires version 1.0.7. Publish this owner release before merging and publishing the consumer.

All 48 module tests pass on Windows PowerShell 5.1 and PowerShell 7. The two new same-module nesting regressions fail against public version 1.0.6 and pass with this fix. Independent targeted confirmation found no actionable defects. The consumer's signed merged-package Windows PowerShell 5.1 verification remains a release gate after the fixed owner is published.

@PrzemyslawKlys
PrzemyslawKlys merged commit 3337cda into master Oct 6, 2026
3 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the fix/host-information-action branch October 6, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant