# HG changeset patch # User huston@80426f53-59d1-405d-934b-f07cd76f4a1a # Date 1277323907 0 # Node ID 183d95ce098c0ffca005e25400172921e52ee2e5 # Parent 0fc97adb3d7a276adecbce0d4b7ae31c3b2cd784 * More portable, should work on Linux (previous one needed another escape which broke the match on Macs) diff -r 0fc97adb3d7a -r 183d95ce098c .bash_aliases --- 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/'`