/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 Fix: In /usr/share/skel/dot.shrc change: alias m=$PAGER into: alias m="$PAGER" How-To-Repeat: Edit $HOME/.profile and change: PAGER=more; export PAGER into: PAGER='less -Fe'; export PAGER
"alias m" has been removed
fixed.
A commit references this bug: Author: eadler Date: Sun Dec 31 06:58:58 UTC 2017 New revision: 327420 URL: https://svnweb.freebsd.org/changeset/base/327420 Log: skel: Quote PAGER in dot.shrc PR: 181853 Submitted by: pl@catslair.org MFC After: 1 week Changes: head/share/skel/dot.shrc
Sorry for the spam: I originally was looking at the wrong file. I did actually fix "alias m" to include the quotes.
A commit references this bug: Author: eadler Date: Sun Jan 7 00:31:45 UTC 2018 New revision: 327659 URL: https://svnweb.freebsd.org/changeset/base/327659 Log: MFC r327420: skel: Quote PAGER in dot.shrc PR: 181853 Submitted by: pl@catslair.org Changes: _U stable/11/ stable/11/share/skel/dot.shrc