On Sat, Oct 20, 2012 at 10:59 AM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":4v4">On Sat, Oct 20, 2012 at 11:46 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<a href="https://bitbucket.org/petsc/petsc-dev/changeset/26de1ead89b9285efb27a8689180876aa83921a5" target="_blank">https://bitbucket.org/petsc/petsc-dev/changeset/26de1ead89b9285efb27a8689180876aa83921a5</a><br><br><a href="http://stackoverflow.com/questions/11530203/what-is-more-portable-echo-e-or-using-printf" target="_blank">http://stackoverflow.com/questions/11530203/what-is-more-portable-echo-e-or-using-printf</a>
</blockquote></div><br>Okay, I will bite. Why would you use the clearly less portable solution?</div></blockquote></div><br><div>I was pointing out that PETSc uses echo in many places. I think Satish's new use of echo -e will be an issue somewhere, so we should use printf there. Also, all the run targets use echo without a flag, but with \n in the string. This is not escaped. You'll see that I started using printf for such examples.</div>
<div><br></div><div><div>$ grep 'printf' src/**/makefile</div><div>src/mat/examples/tests/makefile:           ${DIFF} output/ex38_1.out ex38_1.tmp || printf "${PWD}\nPossible problem with ex38_1, diffs above \n========================================="; \</div>
<div>src/mat/examples/tests/makefile:           ${DIFF} output/ex38_2.out ex38_2.tmp || printf "${PWD}\nPossible problem with ex38_2, diffs above \n========================================="; \</div><div>src/mat/examples/tests/makefile:           ${DIFF} output/ex38_2.out ex38_2.tmp || printf "${PWD}\nPossible problem with ex38_3, diffs above \n========================================="; \</div>
</div><div>...</div>