From: Ian P. <ia...@un...> - 2009-02-05 04:27:51
|
> -----Original Message----- > From: Weddington, Eric > > > I have an XML parsing program that I wrote, > > As a side note, why reinvent the wheel?: > <https://sourceforge.net/projects/xmlstar> Thanks - before embarking on it I spent some time searching on the web and couldn't find anything, so I wish I'd known about that. > -----Original Message----- > From: Keith Marshall > > > This works fine when I test it running it from bash. > > and when run from sh.exe it doesn't work. > > MSYS' sh.exe *is* bash, (and AFAIK, it always has been), > > > .. outputs a "\r\n" on the end of each line of output > > and it seems that bash accepts the '\r' in processing the > > "words=`xmlParse .....`" line, but sh.exe does not. > > More likely, I think, that you have different *versions* of sh.exe on > the two systems. Thanks for that info. I searched for all msys sh.exe files on my system and they all report their version as "bash version 3.1.0". So I tried removing the sed call that I'd added to my script to strip out the '\r' and now I can't get the problem to happen again. So whatever was causing it, it apparently wasn't bash versus sh after all. Thanks, Ian |