[hackers] [dmenu] simplify dmenu_run || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Mon, 17 Oct 2011 11:22:40 +0200 (CEST)

changeset: 454:6341d6b4c23f
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Mon Oct 17 10:22:23 2011 +0100
files: dmenu_run
description:
simplify dmenu_run


diff -r 029984c6031d -r 6341d6b4c23f dmenu_run
--- a/dmenu_run Mon Oct 17 10:11:48 2011 +0100
+++ b/dmenu_run Mon Oct 17 10:22:23 2011 +0100
_AT_@ -5,7 +5,7 @@
 fi
 (
         IFS=:
- if test "`ls -dt $PATH "$CACHE" 2> /dev/null | sed 1q`" != "$CACHE"; then
+ if [ "`ls -dt $PATH "$CACHE" | head -n 1`" != "$CACHE" ]; then
                 lsx $PATH | sort -u > "$CACHE"
         fi
 )
Received on Mon Oct 17 2011 - 11:22:40 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 17 2011 - 11:24:07 CEST