Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0000956 [1003.1(2013)/Issue7+TC1] Shell and Utilities Editorial Omission 2015-06-10 15:46 2019-10-21 09:28
Reporter steffen View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Applied  
Name Steffen Nurpmeso
Organization
User Reference
Section XCU, mailx
Page Number 2923
Line Number 96322-96324, 96592-96594, 96598-96600
Interp Status Approved
Final Accepted Text see Note: 0003094
Summary 0000956: Documentation unification regarding PAGER
Description The problem i see with the current occurrences is that for PAGER itself -- and only there -- the standard states (p. 2911, l. 96088) that

  When standard output is a terminal device,

effectively restricting PAGER to this specific mode, whereas otherwise it says "shall be paged through the command specified by the PAGER environment variable" which is a completely different thing given that PAGER can be set to "Any string acceptable as a command_string operand to the sh -c command".
(Especially if an implementation allows special values like "0" to mean "always use PAGER", which would be a standard-extension, though.)

FreeBSD etc. Mail implementations act accordingly to an updated Issue, NetBSD Mail seems to use the PAGER regardless. (My own clone will act like the former from version 14.8.1, i.e., tomorrow, on.)
Desired Action Change, in the range 96322-96324

  crt=number Pipe messages having more than number lines through the command specified by the value of the PAGER variable. The default shall be nocrt. If it is set to null, the value used is implementation-defined.

to

  crt=number Paginate messages having more than number lines as described for the PAGER variable. The default shall be nocrt. If it is set to null, the value used is implementation-defined.

In the line ranges 96592-96594 and 96598-96600, change

  If crt is set, the messages longer than the number of lines specified by the crt variable shall be paged through the command specified by the PAGER environment variable.

to

  If the message is longer than crt lines ([REF]), the output shall be paginated as described for the PAGER variable.
Tags tc3-2008
Attached Files

- Relationships

-  Notes
(0002703)
steffen (reporter)
2015-06-10 15:49

I said, rather context-free,

  allows special values like "0" to mean "always use PAGER"

and that referred to the internal variable *crt*.
(0003094)
rhansen (manager)
2016-03-10 17:27

Interpretation response
------------------------
The standard is unclear on this issue, and no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor.

Rationale:
-------------
The standard is ambiguous if the standard output is not a terminal.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
At page 2911 line 96088-96090 change
When standard output is a terminal device, the message output shall be piped through the command if the mailx internal variable crt is set to a value less the number of lines in the message; see Internal Variables in mailx (on page 2915).
to
When standard output is a terminal device, the message output shall be piped through the command if the mailx internal variable crt is set to a value less than the total number of lines in the messages; see Internal Variables in mailx (on page 2915). When standard output is not a terminal device, it is unspecified whether the message output is written directly to standard output or is subject to pagination.

On P2915, L96288 change:
no name
to:
noname
(i.e. remove the space)

At page 2916 lines 96322-96324, change:
crt=number Pipe messages having more than number lines through the command specified by the value of the PAGER variable. The default shall be nocrt. If it is set to null, the value used is implementation-defined.
to
crt=number Paginate message output as described for the PAGER variable. The default shall be nocrt, disabling this pagination. If it is set to null, the value used is implementation-defined.

At page 2923 lines 96592-96594 and 96598-96600, change:
If crt is set, the messages longer than the number of lines specified by the crt variable shall be paged through the command specified by the PAGER environment variable.
to
If crt is set, the output shall be paginated as described for the PAGER variable.
(0003095)
shware_systems (reporter)
2016-03-10 17:36
edited on: 2016-03-10 18:55

Re: Note: 0002703
The resolution of Note: 0003094 includes that use case implicitly for terminal devices, by clarifying the expectation of nocrt. For non-terminal devices it would still be an extension.

(0003524)
ajosey (manager)
2016-12-15 18:12

Interpretation proposed: 15 Dec 2016
(0003552)
ajosey (manager)
2017-01-18 15:25

Interpretation Approved: 18 Jan 2017

- Issue History
Date Modified Username Field Change
2015-06-10 15:46 steffen New Issue
2015-06-10 15:46 steffen Name => Steffen Nurpmeso
2015-06-10 15:46 steffen Section => XCU, mailx
2015-06-10 15:46 steffen Page Number => 2923
2015-06-10 15:46 steffen Line Number => 96322-96324, 96592-96594, 96598-96600
2015-06-10 15:49 steffen Note Added: 0002703
2016-03-10 17:27 rhansen Note Added: 0003094
2016-03-10 17:29 rhansen Interp Status => Pending
2016-03-10 17:29 rhansen Final Accepted Text => see Note: 0003094
2016-03-10 17:29 rhansen Status New => Interpretation Required
2016-03-10 17:29 rhansen Resolution Open => Accepted As Marked
2016-03-10 17:30 rhansen Tag Attached: tc3-2008
2016-03-10 17:36 shware_systems Note Added: 0003095
2016-03-10 17:50 Don Cragun Note Edited: 0003095
2016-03-10 17:51 Don Cragun Note Edited: 0003095
2016-03-10 17:52 Don Cragun Note Edited: 0003095
2016-03-10 18:55 shware_systems Note Edited: 0003095
2016-12-15 18:12 ajosey Interp Status Pending => Proposed
2016-12-15 18:12 ajosey Note Added: 0003524
2017-01-18 15:25 ajosey Interp Status Proposed => Approved
2017-01-18 15:25 ajosey Note Added: 0003552
2019-10-21 09:28 geoffclare Status Interpretation Required => Applied


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker