commit cfcb9d9105bceab1d9cb8e9a307c6e7b5e0b8463
parent 6fe99af1db17fdd41e32b964fabbed9cf3d8e149
Author: sqweek <sqweek@gmail.com>
Date: Fri, 12 Oct 2007 00:14:35 +0800
Prevent proglist from matching ls directory headers like ¨/opt/xplanet/bin:".
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rc/rc.wmii.rc b/rc/rc.wmii.rc
@@ -76,7 +76,7 @@ fn 9menu {
fn proglist {
/bin/ls -lL `{echo $* | sed 'y/:/ /'} >[2]/dev/null \
- | awk '$1 ~ /^[^d].*x/ { print $NF }' \
+ | awk '$1 ~ /^[^d][^/]*x/ { print $NF }' \
| sort | uniq
}