From sheldonh@axl.training.iafrica.com  Fri Aug 14 02:16:14 1998
Received: from axl.training.iafrica.com (axl.training.iafrica.com [196.31.1.175])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA23841
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 14 Aug 1998 02:15:50 -0700 (PDT)
          (envelope-from sheldonh@axl.training.iafrica.com)
Received: (from sheldonh@localhost)
	by axl.training.iafrica.com (8.8.8/8.8.8) id LAA19428;
	Fri, 14 Aug 1998 11:15:11 +0200 (SAST)
	(envelope-from sheldonh)
Message-Id: <199808140915.LAA19428@axl.training.iafrica.com>
Date: Fri, 14 Aug 1998 11:15:11 +0200 (SAST)
From: axl@iafrica.com
Reply-To: axl@iafrica.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: src/etc/root/dot.profile sets bogus crt envariable
X-Send-Pr-Version: 3.2

>Number:         7613
>Category:       conf
>Synopsis:       src/etc/root/dot.profile sets bogus crt envariable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 14 02:20:01 PDT 1998
>Closed-Date:    Sat Aug 29 22:40:23 PDT 1998
>Last-Modified:  Sat Aug 29 22:41:40 PDT 1998
>Originator:     Sheldon Hearn
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
UUNET Internet Africa
>Environment:

	FreeBSD 2.2.7 out of the box for Intel machines

>Description:

	The src/etc/root/dot.profile sets the environment variable
	crt to 24 for correct paging within the mail(1) program.
	If crt is unset, no paging is done. However, according to
	the mail(1) manpage:

	|  If crt is set without a value, then the height of the
	|  ter- minal screen stored in the system is used to compute
	|  the threshold (see stty(1)).

	Therefore, to ensure correct paging in non-24-line modes, crt
	should be set to an empty value.

>How-To-Repeat:

	N/A

>Fix:
	
	The following patch changes root's .profile to setting the
	value of crt to ''. This makes for correct paging on a
	wider range of display types.

--- /usr/src/etc/root/dot.profile.ORIG	Sun Feb 15 16:31:55 1998
+++ /usr/src/etc/root/dot.profile	Fri Aug 14 11:12:55 1998
@@ -9,5 +9,5 @@
 PAGER=more
 export PAGER
 # make mail(1) happy:
-crt=24
+crt=''
 export crt
>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <axl@iafrica.com>
To: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Cc:  Subject: Re: conf/7613: src/etc/root/dot.profile sets bogus crt envariable 
Date: Fri, 14 Aug 1998 14:45:34 +0200

 It would seem that src/share/skel/dot.profile also needs to be patched.
 Sorry, I should have been more careful when posting originally. An
 additional patch follows.
 
 Ciao,
 Sheldon.
 
 --- /usr/src/share/skel/dot.profile.ORIG	Fri Aug 14 14:40:24 1998
 +++ /usr/src/share/skel/dot.profile	Fri Aug 14 14:40:37 1998
 @@ -18,7 +18,7 @@
  EDITOR=vi;   	export EDITOR
  PAGER=more;  	export PAGER
  # make mail(1) happy:
 -crt=24;		export crt
 +crt='';		export crt
  
  # set ENV to a file invoked each time sh is started for interactive use.
  ENV=$HOME/.shrc; export ENV
State-Changed-From-To: open->analyzed 
State-Changed-By: thepish 
State-Changed-When: Fri Aug 14 06:44:19 PDT 1998 
State-Changed-Why:  
fixed in -current 
State-Changed-From-To: analyzed->closed 
State-Changed-By: thepish 
State-Changed-When: Sat Aug 29 22:40:23 PDT 1998 
State-Changed-Why:  
merge from current PR7613 (let mail use system defaults for pagination size) 
>Unformatted:
