commit 06cb0645de0065687b6bab13cd6926f776d67c90 parent d59f6dc8d5096ad4f18f0d5f542e7360ba0f90c1 Author: Anselm R. Garbe <garbeam@wmii.de> Date: Thu, 16 Mar 2006 15:03:26 +0100 pushing simplified proglist based on bogon's work Diffstat:
| rc/wmiirc | | | 8 | +------- |
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/rc/wmiirc b/rc/wmiirc @@ -7,13 +7,7 @@ xwrite() { } proglist() { - 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 + ls -lpL `echo "$@" | tr ':' ' '` | awk '!/^d/ && $1 ~ /x/ {print $NF}' | sort | uniq } # give wmiiwm a chance to start