From owner-freebsd-current Fri Nov 24 09:16:41 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA07755 for current-outgoing; Fri, 24 Nov 1995 09:16:41 -0800 Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id JAA07747 for ; Fri, 24 Nov 1995 09:16:28 -0800 Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id SAA16987; Fri, 24 Nov 1995 18:04:23 +0100 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id SAA24107; Fri, 24 Nov 1995 18:04:20 +0100 Date: Fri, 24 Nov 1995 18:04:20 +0100 Message-Id: <199511241704.SAA24107@caramba.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) Cc: current@freebsd.org Subject: Re: new calendar(1), please test In-Reply-To: References: <199511241221.NAA06150@caramba.cs.tu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-current@freebsd.org Precedence: bulk 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); } }