changeset 45:183d95ce098c

* More portable, should work on Linux (previous one needed another escape which broke the match on Macs)
author huston@80426f53-59d1-405d-934b-f07cd76f4a1a
date Wed, 23 Jun 2010 20:11:47 +0000
parents 0fc97adb3d7a
children 82999776304f
files .bash_aliases
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.bash_aliases	Wed Jun 23 19:59:12 2010 +0000
+++ b/.bash_aliases	Wed Jun 23 20:11:47 2010 +0000
@@ -109,10 +109,10 @@
   eval $TOODLEDO_CMDS | egrep '^<[0-9]+>' | ( 
     set -f
     while read TASK ; do
-      [[ "$TASK" =~ "startdate[" ]] || {
-        echo $TASK
+
+      if echo $TASK | grep -v 'startdate\[' ; then
         continue
-      }
+      fi
 
       TODAY=`date "+%Y/%m/%d"`
       STARTDATE=`echo $TASK | sed 's/.*startdate\[\([^ [.].]]*\)\].*/\1/'`