pushing simplified proglist based on bogon's work

This commit is contained in:
Anselm R. Garbe 2006-03-16 15:03:26 +01:00
parent d59f6dc8d5
commit 06cb0645de

View File

@ -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