Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2013 00:30:14 GMT
From:      ShelLuser <pl@catslair.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/181853: dot.shrc can't handle command line options in $PAGER variable
Message-ID:  <201309060030.r860UE1f005829@oldred.freebsd.org>
Resent-Message-ID: <201309060040.r860e0Bc024746@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>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:
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309060030.r860UE1f005829>