<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,7 +64,7 @@ z() {
   # if we hit enter on a completion just go there
   [ -d &quot;$last&quot; ] &amp;&amp; cd &quot;$last&quot; &amp;&amp; return
   [ -f &quot;$datafile&quot; ] || return
-  cd=&quot;$(awk -v t=&quot;$(date +%s)&quot; -v list=&quot;$list&quot; -v typ=&quot;$typ&quot; -v q=&quot;$fnd&quot; -F&quot;|&quot; '
+  cd=&quot;$(awk -v t=&quot;$(date +%s)&quot; -v list=&quot;$list&quot; -v typ=&quot;$typ&quot; -v q=&quot;$fnd&quot; -v tmpfl=&quot;$datafile.tmp&quot; -F&quot;|&quot; '
    function frecent(rank, time) {
     dx = t-time
     if( dx &lt; 3600 ) return rank*4
@@ -99,7 +99,7 @@ z() {
    BEGIN { split(q, a, &quot; &quot;) }
    {
     if( system(&quot;test -d \&quot;&quot; $1 &quot;\&quot;&quot;) ) next
-    print $0 &gt;&gt; FILENAME &quot;.tmp&quot;
+    print $0 &gt;&gt; tmpfl
     if( typ == &quot;rank&quot; ) {
      f = $2
     } else if( typ == &quot;recent&quot; ) {</diff>
      <filename>z.sh</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>66cb4864b07aa8317701f04378a0da09a2ebf106</id>
    </parent>
  </parents>
  <author>
    <name>rupa</name>
    <email>rupa@lrrr.us</email>
  </author>
  <url>http://github.com/rupa/z/commit/eacb0e8cd3805c8a37b721e9727696dbac2d3620</url>
  <id>eacb0e8cd3805c8a37b721e9727696dbac2d3620</id>
  <committed-date>2009-07-02T09:18:53-07:00</committed-date>
  <authored-date>2009-07-02T09:18:53-07:00</authored-date>
  <message>pass tmpfile name to awk in a variable. BSD awk (which OSX appears to use) doesn't like to redirect to concatenated filenames, and FILENAME is not available in the BEGIN clause, which is where i'd like to concatenate it, so this seemed the best approach. Closes gh-1</message>
  <tree>e20d7c9dbe757a02de024e2b5a20e285a0bb9b42</tree>
  <committer>
    <name>rupa</name>
    <email>rupa@lrrr.us</email>
  </committer>
</commit>
