<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Fugue &#187; posix</title>
	<atom:link href="http://hans.fugal.net/blog/tag/posix/feed/" rel="self" type="application/rss+xml" />
	<link>http://hans.fugal.net/blog</link>
	<description>Counterpoint by Hans Fugal</description>
	<lastBuildDate>Fri, 11 Jun 2010 17:38:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>sh.vim</title>
		<link>http://hans.fugal.net/blog/2008/03/29/sh-vim/</link>
		<comments>http://hans.fugal.net/blog/2008/03/29/sh-vim/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 00:38:58 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bourne]]></category>
		<category><![CDATA[highlighting]]></category>
		<category><![CDATA[ksh]]></category>
		<category><![CDATA[posix]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Have you ever been frustrated with perfectly valid bash syntax being highlighted as incorrect in vim? Like this: #!/bin/sh foo=$(ls /tmp) $() is a perfectly valid, nay preferred substitute for backticks. The problem is that vim is deciding this is pure old bourne shell instead of whatever else we'd like it to be. If you [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever been frustrated with perfectly valid bash syntax being highlighted as incorrect in vim? Like this:</p>
<pre><code>
#!/bin/sh
foo=<span style="color:red">$(</span>ls /tmp<span style="color: red">)</span>
</code></pre>
<p><code>$()</code> is a perfectly valid, nay preferred substitute for backticks. The problem is that vim is deciding this is pure old bourne shell instead of whatever else we'd like it to be. If you change the shebang to <code>#!/bin/bash</code> and re-edit the file, then the error markings go away. But maybe you're writing for the nebulous POSIX shell, not bash nor sh. Or maybe you just don't care and you don't want vim complaining that you're using bashisms even though your shebang says sh. You can set the defaults so that it reflects your system and preferences. It's all there in <code>:help sh.vim</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hans.fugal.net/blog/2008/03/29/sh-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
