[hackers] [wmii] Properly grep out shell variables in config_whatis (so that it's possible to use ~/.wmii-3.5/status instead of Action-status).

From: sqweek <sqweek_AT_gmail.com>
Date: Tue Oct 02 17:36:50 2007

changeset: 2212:187aa94b67e0
user: sqweek <sqweek_AT_gmail.com>
date: Tue Oct 02 22:15:18 2007 +0800
summary: Properly grep out shell variables in config_whatis (so that it's possible to use ~/.wmii-3.5/status instead of Action-status).

diff -r 0446b3b23a5f -r 187aa94b67e0 rc/rc.wmii.rc
--- a/rc/rc.wmii.rc Tue Oct 02 20:51:44 2007 +0800
+++ b/rc/rc.wmii.rc Tue Oct 02 22:15:18 2007 +0800
@@ -12,7 +12,7 @@ if(echo $0 | grep -s '(^|/)rc\.wmii\.loc
 }
 
 fn config_whatis {
- prog = `{@{path=$confpath whatis $1} | grep -v '^fn|= ' || echo /dev/null}
+ prog = `{@{path=$confpath whatis $1} | grep -v '^fn|=' || echo /dev/null}
         shift; echo $prog $*
 }
 
Received on Tue Oct 02 2007 - 17:36:50 UTC

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