Re: [dwm] dmenu_cache patch for dmenu 3.0

From: Jukka Salmi <j+dwm_AT_2007.salmi.ch>
Date: Sun, 13 May 2007 11:13:32 +0200

dfenze_AT_gmail.com --> dwm (2007-05-12 20:36:44 +0200):
> I created new, simpler version, withou $PATH changes, without tempfile
> etc. It only check if in directories in $PATH doesn't happen something
> from last recreation of cache.
[...]
> I used $HOME instead '~' is this ok?

Your patch looks (and works) fine!

To be compatible with old shells you should be careful when test(1)ing
a potentially unset or empty variable; i.e. use `test x$var != x'
instead of `test $var'.

However, nowadays probably nobody uses such shells anymore... ;-)

Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
Received on Sun May 13 2007 - 11:13:33 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:41:36 UTC