Email List: Xaustin-review-lX
[All Lists]

Defect in XCU cal

To: austin-review-l@xxxxxxxxxxxxx
Subject: Defect in XCU cal
From: dcragun@xxxxxxxxx
Date: Tue, 9 Jun 2009 01:29:01 +0100 (BST)
        Defect report from : Don Cragun , self

(Please direct followup comments direct to austin-group-l@opengroup.org)

@ page 2499 line 79981, 79983 section cal objection {dwc-cal}

Problem:

Edition of Specification (Year): 2008

Defect code :  1. Error

The description of the operands is confusing and incorrect in the case
when only one operand is given on the cal command line.

If one operand (year) is given, the output should be a 12 month calendar
for the given year.  But, the current description says that the output
shold be a one month calendar for the current date's month in the
specified year.

If no operands are given on the cal command line, the output should be a
calendar for the current month in the current year.  This is as
specified in the operands section.

If both operands are given, the output should be a one month calendar
for the given month in the given year.  Since there are no defaults in
this case, this is correct as well.


Action:

Since we are requesting a change to the description of the way
implementations are required to act, this aardvark request should be
sent down the interpresentations track (with code phrases Standard is
clear, Standard is wrong, concerns have been forwarded to the sponsor).

Suggested wording for the next technical corrigenda or revision:
Add a new paragraph to the DESCRIPTION of cal after P2499, L79975:
        If no operands are given, cal shall produce a one month calendar
        for the current month in the current year.  If only the year
        operand is given, cal shall produce a calendar for all twelve
        months in the given calendar year.  If both month and year
        operands are given, cal shall produce a one month calendar for
        the given month in the given year.

Delete:
        The default shall be the current month.
from P2499, L79981.

Delete:
        The default shall be the current year.
from P2499, L79983.

Change:
        None.
in the RATIONALE on P2500, L80028 to:
        Earlier versions of this standard incorrectly required that the
        command:
                cal 2000
        write a one month calendar for the current calendar month (no
        matter what the current year is) in the year 2000 to standard
        output.  This did not match historic practice in any known
        version of the cal utility.  The description has been updated to
        match historic practice.  When only the year operand is given,
        cal writes a twelve month calendar for the specified year.

<Prev in Thread] Current Thread [Next in Thread>