<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: HOWTO: Use the C Preprocessor in a bash script.</title>
	<atom:link href="http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/</link>
	<description>by Colin Barrett</description>
	<lastBuildDate>Thu, 29 Mar 2012 21:17:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/comment-page-1/#comment-19634</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Tue, 27 Nov 2007 20:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/09/16/howto-use-the-c-preprocessor-in-a-bash-script/#comment-19634</guid>
		<description>&lt;p&gt;As an alternative to suppressing errors and hiding &lt;code&gt;cpp&lt;/code&gt; via a define, you can do something like the following to “skip” the first two lines of your script when feeding it to &lt;code&gt;cpp&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#!/bin/bash
cat &quot;$0&quot;&#124;{ read; read; cpp&#124;/bin/bash; }; exit $?
…
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>As an alternative to suppressing errors and hiding <code>cpp</code> via a define, you can do something like the following to “skip” the first two lines of your script when feeding it to <code>cpp</code>:</p>

<pre><code>#!/bin/bash
cat "$0"|{ read; read; cpp|/bin/bash; }; exit $?
…
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Fred Wenzel</title>
		<link>http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/comment-page-1/#comment-11208</link>
		<dc:creator>Fred Wenzel</dc:creator>
		<pubDate>Fri, 28 Sep 2007 08:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/09/16/howto-use-the-c-preprocessor-in-a-bash-script/#comment-11208</guid>
		<description>&lt;p&gt;Hah, that&#039;s so wrong :) But I lov eit.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hah, that&#8217;s so wrong :) But I lov eit.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ted Mielczarek</title>
		<link>http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/comment-page-1/#comment-9803</link>
		<dc:creator>Ted Mielczarek</dc:creator>
		<pubDate>Mon, 17 Sep 2007 11:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/09/16/howto-use-the-c-preprocessor-in-a-bash-script/#comment-9803</guid>
		<description>&lt;p&gt;You are a sick monkey.  Bash scripting is bad enough as it is!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You are a sick monkey.  Bash scripting is bad enough as it is!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Robert O'Callahan</title>
		<link>http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/comment-page-1/#comment-9789</link>
		<dc:creator>Robert O'Callahan</dc:creator>
		<pubDate>Mon, 17 Sep 2007 07:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/09/16/howto-use-the-c-preprocessor-in-a-bash-script/#comment-9789</guid>
		<description>&lt;p&gt;You sick, sad man.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You sick, sad man.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Textual Pornography &#187; Blog Archive &#187;</title>
		<link>http://iamthewalr.us/blog/2007/09/howto-use-the-c-preprocessor-in-a-bash-script/comment-page-1/#comment-9772</link>
		<dc:creator>Textual Pornography &#187; Blog Archive &#187;</dc:creator>
		<pubDate>Mon, 17 Sep 2007 02:27:13 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/09/16/howto-use-the-c-preprocessor-in-a-bash-script/#comment-9772</guid>
		<description>&lt;p&gt;[...] Colin and I came up with three lines to stick at the top of a bash script that&#8217;ll run the C preprocessor over the script before running it. See all the sordid details at his blog. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] Colin and I came up with three lines to stick at the top of a bash script that&#8217;ll run the C preprocessor over the script before running it. See all the sordid details at his blog. [&#8230;]</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.746 seconds -->

