Re: [dev] [dmenu] dmenu_run improvements

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Sun, 24 Jul 2011 14:09:54 +0100

On 24 July 2011 06:34, Dave Reisner <d_AT_falconindy.com> wrote:
> if [ "$path" -nt "$CACHE" ]; then

'test -nt' is non-portable. I think you've just discovered why we use
the 'ls -dt' hack.

I agree that dmenu_run isn't the nicest script in existence. But
because of the tedious limitations of POSIX we don't have much choice.

On 24 July 2011 13:13, lolilolicon <lolilolicon_AT_gmail.com> wrote:
> cmd=`dmenu "$@" < "$CACHE"` || exit $?
> exec sh -c "$cmd"

This could work, I think. I'll check it out.

Thanks,
cls
Received on Sun Jul 24 2011 - 15:09:54 CEST

This archive was generated by hypermail 2.2.0 : Sun Jul 24 2011 - 15:12:02 CEST