[hackers] [dmenu] only match links || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sun, 15 May 2011 00:21:42 +0200 (CEST)

changeset: 399:2e8e59ac709a
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat May 14 23:21:38 2011 +0100
files: dmenu_path
description:
only match links

diff -r 57ad038884b4 -r 2e8e59ac709a dmenu_path
--- a/dmenu_path Sat May 14 23:14:31 2011 +0100
+++ b/dmenu_path Sat May 14 23:21:38 2011 +0100
@@ -3,7 +3,7 @@
 IFS=:
 
 if ! test -f "$CACHE" || find $PATH -type d -newer "$CACHE" | grep -q .; then
- find -L $PATH -type f \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
+ find $PATH ! -type d \( -perm -1 -o -perm -10 -o -perm -100 \) | sed 's/.*\///' | sort -u > "$CACHE"
 fi
 
 cat "$CACHE"
Received on Sun May 15 2011 - 00:21:42 CEST

This archive was generated by hypermail 2.2.0 : Sun May 15 2011 - 00:24:05 CEST