misc/181853: dot.shrc can't handle command line options in $PAGER variable

ShelLuser pl at catslair.org
Fri Sep 6 00:40:00 UTC 2013

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

/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

Edit $HOME/.profile and change:

PAGER=more;     export PAGER


PAGER='less -Fe';     export PAGER

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

alias m=$PAGER


alias m="$PAGER"


More information about the freebsd-bugs mailing list