diff -r d14fe4d89e3f dmenu_path --- a/dmenu_path Mon May 21 14:36:03 2007 +0200 +++ b/dmenu_path Wed May 23 12:42:44 2007 +0200 @@ -3,20 +3,22 @@ UPTODATE=1 UPTODATE=1 IFS=: +uptodate() { [ $UPTODATE -eq 1 ]; } + if test ! -f $CACHE then - unset UPTODATE + UPTODATE=0 fi -if test $UPTODATE +if uptodate then for dir in $PATH do - test $dir -nt $CACHE && unset UPTODATE + test $dir -nt $CACHE && { UPTODATE=0; break; } done fi -if test ! $UPTODATE +if ! uptodate then for dir in $PATH do