Subject: standards/11219: less(1) is not compatible with POSIX.2 "more"
To: None <>
From: Ben Harris <>
List: netbsd-bugs
Date: 10/14/2000 07:48:14
>Number:         11219
>Category:       standards
>Synopsis:       less(1) is not compatible with POSIX.2 "more"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 14 07:48:00 PDT 2000
>Originator:     Ben Harris
>Release:        2000-02-07
NetBSD cromarty 1.4X NetBSD 1.4X (CROMARTY) #9: Wed May  3 23:49:51 BST 2000
     bjh21@cromarty:/usr/src/sys/arch/macppc/compile/CROMARTY macppc

NetBSD's more(1) diverges from that specified by POSIX.2 in the following

more -n <number>, which should specify the screen size, isn't
supported.  more -n in NetBSD apparently suppresses line numbers.

more -p <command>, which should be equivalent to more +<command>,
performs a search instead.

Within more(1), the "s" command should "skip forward <count> lines, with a
default of 1", whereas it currents saves the input to a file.

cromarty:~$ TERM=dumb more -n 2 /dev/null
2: No such file or directory
/dev/null  (press RETURN)

cromarty:~$ TERM=dumb more -p G /dev/null
Pattern not found  (press RETURN)

Run "more /usr/dict/words", press "s", note "log file:" prompt.