Hi,
the most recent [1]commit removed the part where the temporary cache
file was written, thus breaking the script. The attached patch fixes
this.
BTW, -maxdepth is not specified in SUSV3...
Regards, Jukka
[1]
http://www.suckless.org/cgi-bin/hgwebdir.cgi/dmenu/diff/1fed9410fbc6/dmenu_path
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
diff -r 1fed9410fbc6 dmenu_path
--- a/dmenu_path Wed May 23 19:38:23 2007 -0400
+++ b/dmenu_path Thu May 24 09:19:20 2007 +0200
@@ -18,8 +18,8 @@ then
echo "$PATH"
qfind $PATH -type f -maxdepth 1 '(' -perm -u+x -o -perm -g+x -o
-perm -o+x ')' |
sed 's,.*/,,' | sort | uniq
- }
- mv $CACHE.$pid $CACHE
+ } >$CACHE.$$
+ mv $CACHE.$$ $CACHE
fi
tail -n +2 $CACHE