How do I suppress standard error output in PowerShell? How do I suppress standard error output in PowerShell? powershell powershell

How do I suppress standard error output in PowerShell?


If you want to suppress only standard error, use:

svn info $url 2>$null


Just in case someone else googles for similar terms as I did:

After I have been banging my forehead against this for hours, of course I found the solution within minutes after posting the question here:

svn info $url 2>&1 | out-null

This works like a charm.