ref: c9cdd2ed16e9cc218a675addc421e2c59b8f1528
dir: /show/
#!/bin/rc -e rfork ne fn gettags { # Push to showlist for(a in $*) if(test -s .pro/task/$a) showlist=($showlist $a) } fn pretty { } fn showtask { for(m in $showlist){ if (~ $#raw 1) cat $m if not pretty $m } } # Just pretty print a task, nothing to it flagfmt='r:raw'; args='[tags ...]' eval `''{aux/getflags $*} || exec aux/usage showlist=() @{ gettags showtask } || echo 'unable to show given tags:' $status >[1=2] exit ''