wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 0f460544cb5e0cc89dfd25f1ca1e3f2f0520770c
parent 4915f50d1dd84ee05555aec53c60f295b2a486e4
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Thu, 16 Mar 2006 13:01:09 +0100

added old version of proglist, much more portable


Diffstat:
rc/wmiirc | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/rc/wmiirc b/rc/wmiirc @@ -7,8 +7,13 @@ xwrite() { } proglist() { - find -L `echo "$@" | tr ':' '\n' | uniq` -perm -u+x -type f -print | - sed 's,^.*/,, ' | sort | uniq + for dir in `echo $@ | sed 's/^:/.:/; s/::/:.:/; s/:$/:./' | tr : ' '` + do + for i in $dir/* + do + test -x "$i" && test ! -d "$i" && echo `basename "$i"` + done + done | sort | uniq } # give wmiiwm a chance to start