Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: bill@uhura.cc.rochester.edu (Bill Vaughn) Newsgroups: comp.sys.sun Subject: Re: Calendar Keywords: Software Message-ID: <9831@brazos.Rice.edu> Date: 10 Jul 90 05:46:54 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 28 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n249, Replies: v9n249 X-Sun-Spots-Digest: Volume 9, Issue 254, message 15 In article <9691@brazos.Rice.edu> moj@mirfak.UTU.FI (Matti Jokinen) writes: > >At least in SunOS 4.0.3 there is a bug in /usr/bin/calendar: the messages >are sent twice if the userid is both in /etc/passwd and in the YP map. >Fortunately /usr/bin/calendar is a script and can be fixed easily: > >27c27 >> $caldata |cat /etc/passwd - | grep -v '^[+-]' |\ >--- >< $caldata |cat /etc/passwd - | grep -v '^[+-]' | sort -u |\ While looking at /usr/bin/calendar in order to checkout the above fix I noticed a curious line: if (/usr/lib/calendar $y/calendar) Now /usr/lib/calendar is supposed to create a 'sed' script used to find specific dates in one's calendar file. I'm not sure that it's exit status is well defined and I'm not sure what it will do with the argument. Shouldn't the line be: if test -f $y/calendar ? Is /usr/lib/calendar doing something that's not documented here such as testing the existence of it's argument? Just curious. Bill Vaughn bill@cvs.rochester.edu