added old version of proglist, much more portable

This commit is contained in:
Anselm R. Garbe 2006-03-16 13:01:09 +01:00
parent 4915f50d1d
commit 0f460544cb

View File

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