From owner-freebsd-bugs Fri Apr 17 02:00:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA11685 for freebsd-bugs-outgoing; Fri, 17 Apr 1998 02:00:08 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA11610; Fri, 17 Apr 1998 02:00:02 -0700 (PDT) (envelope-from gnats) Date: Fri, 17 Apr 1998 02:00:02 -0700 (PDT) Message-Id: <199804170900.CAA11610@hub.freebsd.org> To: freebsd-bugs Cc: From: A Joseph Koshy Subject: Re: bin/1577: mail -f foo does not look in current directory of .mailrc has chdir Reply-To: A Joseph Koshy Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/1577; it has been noted by GNATS. From: A Joseph Koshy To: freebsd-gnats-submit@freebsd.org, sef@kithrup.com Cc: phk@freebsd.org Subject: Re: bin/1577: mail -f foo does not look in current directory of .mailrc has chdir Date: Fri, 17 Apr 1998 14:23:43 +0530 I just looked at PR bin/1577. To me it seems that the behaviour of `mail' is consistent. Given that (a) .mailrc (and the system RC files) are read in before anything else is done AND (b) the RC files support most user commands including "chdir" the behaviour of "-f" is what a user would expect. Here is a patch to the documentation that specifies the startup behaviour, for v1.15 of "/usr/src/usr.bin/mail/mail.1": (should patch cleanly in both -STABLE and -CURRENT) (In /usr/src/usr.bin/mail): ================================================ --- ./mail.1 Tue Apr 14 18:06:28 1998 +++ /tmp/mail.1 Fri Apr 17 14:29:10 1998 @@ -112,6 +112,23 @@ .Pp .Dl mail -f /var/mail/user .El +.Ss Startup actions +At startup time +.Nm mail +will execute commands in the system command files +.Pa /usr/share/misc/mail.rc , +.Pa /usr/local/etc/mail.rc +and +.Pa /etc/mail.rc +in order unless explicitly told not to by using the +.Fl n +option. Next, the commands in the users personal command file +.Pa ~/.mailrc +are executed. +.Nm mail +then examines its command line options to determine whether the user +requested a new message to be sent or existing messages in a mailbox +to be examined. .Ss Sending mail To send a message to one or more people, .Nm mail ================================================ Regards, Koshy <> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message