Annotation of 42BSD/usr.bin/calendar/calendar.sh, revision 1.1

1.1     ! root        1: : calendar.sh 4.4 82/11/07
        !             2: PATH=/bin:/usr/bin:
        !             3: tmp=/tmp/cal$$
        !             4: trap "rm -f $tmp /tmp/cal2$$"
        !             5: trap exit 1 2 13 15
        !             6: /usr/lib/calendar >$tmp
        !             7: case $# in
        !             8: 0)
        !             9:        trap "rm -f $tmp ; exit" 0 1 2 13 15
        !            10:        (/lib/cpp calendar | egrep -f $tmp);;
        !            11: *)
        !            12:        trap "rm -f $tmp /tmp/cal2$$; exit" 0 1 2 13 15
        !            13:        sed '
        !            14:                s/\([^:]*\):.*:\(.*\):[^:]*$/y=\2 z=\1/
        !            15:        ' /etc/passwd \
        !            16:        | while read x
        !            17:        do
        !            18:                eval $x
        !            19:                if test -r $y/calendar
        !            20:                then
        !            21:                        (/lib/cpp $y/calendar | egrep -f $tmp) 2>/dev/null  > /tmp/cal2$$
        !            22:                        if test -s /tmp/cal2$$
        !            23:                        then
        !            24:                                < /tmp/cal2$$ mail $z
        !            25:                        fi
        !            26:                fi
        !            27:        done
        !            28: esac

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.