For example:
git --version 2> $null
I want to use Redirection Operators.
Sorry it's not English.
It's Japanese.
D:\> git --version 2> $null
OperationStopped: γγ‘γ³γ―γ·γ§γ³γιιγ£γ¦γγΎγγ
"γγ‘γ³γ―γ·γ§γ³γιιγ£γ¦γγΎγγ" means "Wrong function"
Name Value
---- -----
PSVersion 7.1.0
PSEdition Core
GitCommitId 7.1.0
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0β¦}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
If you are redirecting a stream other than output stream, then AFAIK, you have to redirect it to output stream (1), then use >
D:\> git --version 2>&1 > $null
D:\> $null = git --version 2>&1
When I use 2>&1 >, I am said the same error.
Didn't get you. Are you getting error when using > ?
This is not a bug and better if you can start a discussion at https://powershell.org/forums/forum/windows-powershell-qa/