[wmii] Prevent proglist from matching ls directory headers like ¨/opt/xplanet/bin:".

From: sqweek <sqweek_AT_gmail.com>
Date: Thu Oct 11 18:07:00 2007

changeset: 2222:e40d49e1d213
tag: tip
user: sqweek <sqweek_AT_gmail.com>
date: Fri Oct 12 00:14:35 2007 +0800
summary: Prevent proglist from matching ls directory headers like ¨/opt/xplanet/bin:".

diff -r 824331e72fff -r e40d49e1d213 rc/rc.wmii.rc
--- a/rc/rc.wmii.rc Thu Oct 11 23:40:26 2007 +0800
+++ b/rc/rc.wmii.rc Fri Oct 12 00:14:35 2007 +0800
@@ -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
 }
 
Received on Thu Oct 11 2007 - 18:07:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:31 UTC