I was assigning the output of Git to a variable in a Windows PowerShell script and it looked as if I was losing the carriage returns and line feeds in the output. What is actually happening is the output of the executable is being broken out into an array of strings.
The following shows an example PowerShell session with an explanation following.
I created a short screen cast to explain this as well.
I hope this helps. Code on!
Next entry: Visual Studio unit test runner using CodeRush from DevExpress
Previous Entry: Show Git branch and status on a Windows PowerShell prompt
Latest entries:
Create absolute URLs using ASP.NET MVC
Comments
My Links
Tags
Follow me
About
Powered by FoxBlog
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2011, Nathan Fox