<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,7 +72,7 @@ cp /dev/null $tmp/br_stderr
 # Setup map and reduce as parts of a pipeline
 [[ -n &quot;$map&quot; ]] &amp;&amp; map=&quot;| $map 2&gt;&gt;$tmp/br_stderr&quot;
 [[ $filenames == true ]] &amp;&amp; map=&quot;| xargs -n1 \
-	sh -c 'zcat \$0 2&gt;/dev/null || cat \$0' 2&gt;&gt;$tmp/br_stderr $map&quot;
+	sh -c 'zcat \$0 2&gt;&gt;$tmp/br_stderr || cat \$0 2&gt;&gt;$tmp/br_stderr' $map&quot;
 [[ -n &quot;$reduce&quot; ]] &amp;&amp; reduce=&quot;| $reduce 2&gt;&gt;$tmp/br_stderr&quot;
 
 jobid=&quot;$(uuidgen)&quot;
@@ -118,8 +118,11 @@ done
 # Create the command to produce input
 if [[ -d &quot;$input&quot; ]]; then
 	input=&quot;find $input -type f |&quot;
+	[[ $filenames == false ]] &amp;&amp; input=&quot;$input xargs -n1 \
+		sh -c 'zcat \$0 2&gt;&gt;$tmp/br_stderr || cat \$0 2&gt;&gt;$tmp/br_stderr' |&quot;
 elif [[ -f &quot;$input&quot; ]]; then
-	input=&quot;pv $input |&quot;
+	input=&quot;sh -c 'zcat $input 2&gt;&gt;$tmp/br_stderr \
+		|| cat $input 2&gt;&gt;$tmp/br_stderr' |&quot;
 else
 	input=
 fi</diff>
      <filename>br</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>75f3292e78a58ecb9b02152c174eab6fd046d55b</id>
    </parent>
    <parent>
      <id>d9bce588d650bf2b4e07e1a5a7d18a800c4f26e8</id>
    </parent>
  </parents>
  <author>
    <name>Richard Crowley</name>
    <email>r@rcrowley.org</email>
  </author>
  <url>http://github.com/rcrowley/bashreduce/commit/186e28e7954dd162ae4cf79bac46d2c191a64643</url>
  <id>186e28e7954dd162ae4cf79bac46d2c191a64643</id>
  <committed-date>2009-07-13T17:14:10-07:00</committed-date>
  <authored-date>2009-07-13T17:14:10-07:00</authored-date>
  <message>Merge branch 'master' of git@github.com:rcrowley/bashreduce</message>
  <tree>0b0e08ac210124a37c32f8337601be192427b924</tree>
  <committer>
    <name>Richard Crowley</name>
    <email>r@rcrowley.org</email>
  </committer>
</commit>
