From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 6 00:40:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D40BC38D for ; Fri, 6 Sep 2013 00:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9B81C2A75 for ; Fri, 6 Sep 2013 00:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r860e0sZ024747 for ; Fri, 6 Sep 2013 00:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r860e0Bc024746; Fri, 6 Sep 2013 00:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 6 Sep 2013 00:40:00 GMT Resent-Message-Id: <201309060040.r860e0Bc024746@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, ShelLuser 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 ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/181853: dot.shrc can't handle command line options in $PAGER variable X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 00:40:00 -0000 >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: