<?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"
	>
<channel>
	<title>Comments on: Ignoring .svn directories with grep</title>
	<atom:link href="http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/feed/" rel="self" type="application/rss+xml" />
	<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/</link>
	<description></description>
	<pubDate>Sat, 22 Nov 2008 09:52:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Jonathan Hartley</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-12960</link>
		<dc:creator>Jonathan Hartley</dc:creator>
		<pubDate>Mon, 27 Oct 2008 15:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-12960</guid>
		<description>Ah, apologies, I lied slightly. The example I gave of a line that *is* correctly filtered out (starting './FunctiojnalTests/T0321...') is wrong. That line always appears in the output. The following is an example of a line that is correctly filtered out by the '--exclude' flag is:

&lt;pre&gt;
  ./.svn/text-base/makedocs.py.svn-base:outputDir = os.path.join(os.getcwd(), 'Documentation', 'LibraryDocumentation')
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ah, apologies, I lied slightly. The example I gave of a line that *is* correctly filtered out (starting &#039;./FunctiojnalTests/T0321&#8230;&#039;) is wrong. That line always appears in the output. The following is an example of a line that is correctly filtered out by the &#039;&#8211;exclude&#039; flag is:</p>
<pre>
  ./.svn/text-base/makedocs.py.svn-base:outputDir = os.path.join(os.getcwd(), 'Documentation', 'LibraryDocumentation')
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Hartley</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-12959</link>
		<dc:creator>Jonathan Hartley</dc:creator>
		<pubDate>Mon, 27 Oct 2008 15:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-12959</guid>
		<description>This still doesn't quite work right for me. I can't figure out why. Some (but not all) of the files in .svn directories are still included in the output. I'm using Cygwin under Windows XP.

I've added this to my ~/.profile:

&lt;pre&gt;
  export GREP_OPTIONS="-I --color --exclude=\*.svn\*"
&lt;/pre&gt;

When I open a new cygwin window, I can see the env variable has been created properly:

&lt;pre&gt;
  $ echo $GREP_OPTIONS
  -I --color --exclude=\*.svn\*
&lt;/pre&gt;

I enter a grep command:

&lt;pre&gt;
  $ grep -r LibraryDocumentation .
&lt;/pre&gt;

The results include lines like this one:

&lt;pre&gt;
  ./Documentation/.svn/entries:LibraryDocumentation
&lt;/pre&gt;

Clearly 'entries' is inside an '.svn' directory. Why isn't it being filtered out?

Some files within '.svn' are filtered out, such as this, which appears in the output if I unset GREP_OPTIONS, but is removed if I set it:

&lt;pre&gt;
  ./FunctionalTests/T0321_US_ThreeInstalls.py:        docPath = path.join("Documentation", "LibraryDocumentation")
&lt;/pre&gt;

The '-I' and '--color' options to grep are being honoured, so grep is seeing the 'GREP_OPTIONS' variable.

I'm most perplexed. If anyone has any clues or ideas, I'd be very grateful. Thanks!

  Jonathan</description>
		<content:encoded><![CDATA[<p>This still doesn&#039;t quite work right for me. I can&#039;t figure out why. Some (but not all) of the files in .svn directories are still included in the output. I&#039;m using Cygwin under Windows XP.</p>
<p>I&#039;ve added this to my ~/.profile:</p>
<pre>
  export GREP_OPTIONS="-I --color --exclude=\*.svn\*"
</pre>
<p>When I open a new cygwin window, I can see the env variable has been created properly:</p>
<pre>
  $ echo $GREP_OPTIONS
  -I --color --exclude=\*.svn\*
</pre>
<p>I enter a grep command:</p>
<pre>
  $ grep -r LibraryDocumentation .
</pre>
<p>The results include lines like this one:</p>
<pre>
  ./Documentation/.svn/entries:LibraryDocumentation
</pre>
<p>Clearly &#039;entries&#039; is inside an &#039;.svn&#039; directory. Why isn&#039;t it being filtered out?</p>
<p>Some files within &#039;.svn&#039; are filtered out, such as this, which appears in the output if I unset GREP_OPTIONS, but is removed if I set it:</p>
<pre>
  ./FunctionalTests/T0321_US_ThreeInstalls.py:        docPath = path.join("Documentation", "LibraryDocumentation")
</pre>
<p>The &#039;-I&#039; and &#039;&#8211;color&#039; options to grep are being honoured, so grep is seeing the &#039;GREP_OPTIONS&#039; variable.</p>
<p>I&#039;m most perplexed. If anyone has any clues or ideas, I&#039;d be very grateful. Thanks!</p>
<p>  Jonathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-1274</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Thu, 06 Dec 2007 00:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-1274</guid>
		<description>OK, ack is truly awesome.  On Windows if you'd like to invoke it by typing 'ack', download the stand-alone version of ack, and create a cmd script called ack.cmd (can be in the same directory as ack) in a directory that's in your PATH with this:
&lt;pre lang="cmd"&gt;
@perl c:\path\to\ack.pl %*
&lt;/pre&gt;
For cygwin you'll need to add an alias in your profile/bashrc file, 
&lt;pre lang="bash"&gt;alias ack='ack.cmd'&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>OK, ack is truly awesome.  On Windows if you&#039;d like to invoke it by typing &#039;ack&#039;, download the stand-alone version of ack, and create a cmd script called ack.cmd (can be in the same directory as ack) in a directory that&#039;s in your PATH with this:</p>

<div class="wp_syntax"><div class="code"><pre>@perl c:\path\to\ack.pl %*</pre></div></div>

<p>For cygwin you&#039;ll need to add an alias in your profile/bashrc file,</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ack=</span><span style="color: #ff0000;">'ack.cmd'</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-1243</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Tue, 04 Dec 2007 17:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-1243</guid>
		<description>Or use ack; http://www.petdance.com/ack/</description>
		<content:encoded><![CDATA[<p>Or use ack; <a href="http://www.petdance.com/ack/" rel="nofollow">http://www.petdance.com/ack/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-214</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Mon, 17 Sep 2007 04:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-214</guid>
		<description>Good catch.  I updated the post to reflect that.</description>
		<content:encoded><![CDATA[<p>Good catch.  I updated the post to reflect that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Asher</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-212</link>
		<dc:creator>James Asher</dc:creator>
		<pubDate>Sun, 16 Sep 2007 20:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-212</guid>
		<description>Actually, you have to add 'export GREP_OPTIONS="--exclude=\*.svn\*"' to the top of your .bashrc file.</description>
		<content:encoded><![CDATA[<p>Actually, you have to add &#039;export GREP_OPTIONS=&#034;&#8211;exclude=\*.svn\*&#034;&#039; to the top of your .bashrc file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
