Date: Fri, 24 Nov 1995 18:04:20 +0100 From: Wolfram Schneider <wosch@cs.tu-berlin.de> To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su> Cc: current@freebsd.org Subject: Re: new calendar(1), please test Message-ID: <199511241704.SAA24107@caramba.cs.tu-berlin.de> In-Reply-To: <Ju1hUjmKx3@ache.dialup.demos.ru> References: <199511241221.NAA06150@caramba.cs.tu-berlin.de> <Ju1hUjmKx3@ache.dialup.demos.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
KOI8-R writes:
>>- Calendar HOME directory ~/.calendar
>
>Standard calendar takes .calendar from _current_ directory, not from
^no dot
>HOME.
calendar(1) try first 'calendar' in current directory and if
not exist '~/.calendar/calendar'.
Wolfram
/* open up calendar file as stdin */
if (!freopen(calendarFile, "r", stdin)) {
if (doall) {
if (chdir(calendarHome) != 0)
return (NULL);
if (stat(calendarNoMail, &sbuf) == 0)
return (NULL);
if (!freopen(calendarFile, "r", stdin))
return (NULL);
} else {
chdir(getenv("HOME"));
if (!(chdir(calendarHome) == 0 &&
freopen(calendarFile, "r", stdin)))
errx(1, "no calendar file: ``%s'' or ``~/%s/%s\n", calendarFile, calendarHome, calendarFile);
}
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511241704.SAA24107>
