tmade dmenu_path the way anydot proposed in response to Jukka - dmenu - Dmenu fork with xft fonts.
 (HTM) git clone git://r-36.net/dmenu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit dfe95cb5468618b2eb3d53d41e2ec9f4d167f3f9
 (DIR) parent 8b633bf17de71ffec76b2413c23c01bb705c36b8
 (HTM) Author: Anselm R. Garbe <arg@suckless.org>
       Date:   Wed, 23 May 2007 22:13:46 +0200
       
       made dmenu_path the way anydot proposed in response to Jukka
       Diffstat:
         dmenu_path                          |      23 ++++++++---------------
       
       1 file changed, 8 insertions(+), 15 deletions(-)
       ---
 (DIR) diff --git a/dmenu_path b/dmenu_path
       t@@ -1,22 +1,15 @@
        #!/bin/sh
        CACHE=$HOME/.dmenu_cache
       -UPTODATE=1
        IFS=:
        
       -uptodate() { [ $UPTODATE -eq 1 ]; }
       -
       -if test ! -f $CACHE 
       -then
       -        UPTODATE=0
       -fi
       -
       -if uptodate
       -then
       -        for dir in $PATH
       -        do
       -                test $dir -nt $CACHE && { UPTODATE=0; break; }
       -        done
       -fi
       +uptodate() {                                                                       
       +        test ! -f $CACHE && return 1                                                   
       +        for dir in $PATH                                                                
       +        do                                                                              
       +                test $dir -nt $CACHE && return 1                                           
       +        done                                                                            
       +        return 0                                                                       
       +}          
        
        if ! uptodate
        then