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

Defect in XCU chgrp

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU chgrp
From: yyyyyyyyyyyyyyy@xxxxxxx
Date: Tue, 30 Sep 2003 18:27:11 +0100 (BST)
        Defect report from : Cynthia Eastham , Sun Microsystems, Inc.

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 233 line 9027-9028 section chgrp comment {ce-chgrp-1}

Problem:

Edition of Specification (Year): 2001

Defect code :  1. Error

The 2001 edition SYNOPSIS section is:
    chgrp -hR group file ...
    chgrp -R [-H | -L | -P] group file

This was incorrect and changed in the 2003 edition to:
    chgrp [-hR] group file ...
    chgrp -R [-H | -L | -P] group file


However, this still is incorrect as no where in the text for chgrp does it talk 
about the behavior when -h is specified with -R.  Upon reading the text for the 
-h, -R, and -P option, it appears that chgrp -hR is equivalent to chgrp -RP, 
and therefore there is no need for -h to be allowed with -R. 

Action:

Change:
    (2001 edition)
    chgrp -hR group file ...
    chgrp -R [-H | -L | -P] group file

     2003 edition)
    chgrp [-hR] group file ...
    chgrp -R [-H | -L | -P] group file


to:
    chgrp [-h] group file ...
    chgrp -R [-H | -L | -P] group file

thus leaving chgrp -Rh unspecified.

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