View Single Post
Old 08-16-2007   #1 (permalink)
dreeschkind


 
 

Redirection of stdout adding lots of empty lines

I think I've seen this kind of thing mentioned before.
Just like to know if there is any explanation for this behaviour:


PS> $a = powershell -noprofile {del * -rec -whatif}; $a
What if: Performing operation "Remove Directory" on Target "C:\test\1".




What if: Performing operation "Remove Directory" on Target "C:\test\2".




What if: Performing operation "Remove Directory" on Target "C:\test\3".




################################################

PS> powershell -noprofile {del * -rec -whatif}
What if: Performing operation "Remove Directory" on Target "C:\test\1".
What if: Performing operation "Remove Directory" on Target "C:\test\2".
What if: Performing operation "Remove Directory" on Target "C:\test\3".


--
greetings
dreeschkind
My System SpecsSystem Spec