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!
Remember Me
a@href@title, b, strike
Powered by: newtelligence dasBlog
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Nathan Fox
E-mail