From nobody@FreeBSD.org  Fri Sep  6 00:30:15 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 27D9729B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Sep 2013 00:30:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 1651A2A39
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  6 Sep 2013 00:30:15 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r860UEGQ006146
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 6 Sep 2013 00:30:14 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r860UE1f005829;
	Fri, 6 Sep 2013 00:30:14 GMT
	(envelope-from nobody)
Message-Id: <201309060030.r860UE1f005829@oldred.freebsd.org>
Date: Fri, 6 Sep 2013 00:30:14 GMT
From: ShelLuser <pl@catslair.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dot.shrc can't handle command line options in $PAGER variable
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         181853
>Category:       conf
>Synopsis:       [patch] dot.shrc can't handle command line options in $PAGER variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 06 00:40:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Sep 06 00:52:53 UTC 2013
>Originator:     ShelLuser
>Release:        9.1-RELEASE-P6
>Organization:
>Environment:
FreeBSD smtp2.losoco.com 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #2 r255124: Wed Sep  4 00:10:46 CEST 2013     root@smtp2.losoco.com:/usr/obj/usr/src/sys/SMTP2  amd64

>Description:
/usr/share/skel/dot.shrc, which will end up in $HOME/.shrc contains the following line:

alias m=$PAGER

However this line can't handle optional parameters being used for the pager. For example; this is my PAGER definition in /home/peter/.profile:

PAGER='less -Fe';

Unrelated comment: -e : quit when EOF has been reached a second time; -F : quit when the text can be displayed on one screen.

But as soon as I use this definition it results in an error message after logging on to the system:

alias: -Fe not found

>How-To-Repeat:
Edit $HOME/.profile and change:

PAGER=more;     export PAGER

into:

PAGER='less -Fe';     export PAGER

>Fix:
In /usr/share/skel/dot.shrc change:

alias m=$PAGER

into:

alias m="$PAGER"


>Release-Note:
>Audit-Trail:
>Unformatted:
