build fails w/ sed errors



On Mon, 2010-11-08 at 15:19 -0600, Barton Willis wrote:
> "Some programs when used under the MSYS shell can be tricky. One such 
> example is sed.
> $ ls *.txt -1 | sed -e s/.exe/\&\!/g
> Normally, sed will append "!" to the end of every .txt file, but if
> sed 
> was compiled and link using MinGW, MSYS will treat it as a native 
> application and will try to change "/" to "\" to compensate for the 
> difference between UNIX path and WIN32, resulting in unpredictability
> when 
> used under the MSYS shell." 
Hi,
I usually enclosed all s commands of sed inside quotes, to avoid that
"unterminated s command" error:

$ ls *.txt -1 | sed -e 's/.exe/\&\!/g'

Regards,
Jaime