<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 11 Mar 2014, at 4:09 pm, Mark Andrews <<a href="mailto:marka@isc.org">marka@isc.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>I didn't think I would need to say "save the contents of the program to<br>conftest.c".<br><br>cat > conftest.c << 'EOF'<br>#include <stdio.h><br>int<br>main ()<br>{<br>FILE *f = fopen ("conftest.out", "w");<br>return ferror (f) || fclose (f) != 0;<br><br>;<br>return 0;<br>}<br>EOF<br>gcc -o conftest conftest.c<br>./conftest<br></div></blockquote></div><br><div>Getting further now!</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">$ cat > conftest.c << 'EOF'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> #include <stdio.h></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> int</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> main ()</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> {</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> FILE *f = fopen ("conftest.out", "w");</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> return ferror (f) || fclose (f) != 0;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> </div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> ;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> return 0;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> }</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">> EOF</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">BordoDNS:bind-9.9.5 jlbrown$ gcc -o conftest conftest.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">BordoDNS:bind-9.9.5 jlbrown$ ./conftest</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">BordoDNS:bind-9.9.5 jlbrown$ </div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">James.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div></body></html>