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

Defect in XCU cp

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU cp
From: yyyyyy@xxxxxxxxxxxxx
Date: Wed, 18 Feb 2004 09:16:16 GMT
        Defect report from : Andrew Josey , The Open Group

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 268 line 10461 section cp comment {aj.cp.options}

Problem:

Edition of Specification (Year): 2003

Defect code :  2. Omission

The standard does not talk clearly to the interplay between the -i and -f 
options for the cp utility, whereas it does describe the interplay
for the same options within the rm and mv utilities (in which case the
last option wins). This would appear to be an omission in the standard.

for example, what happens for

# create two files
touch aa bb
cp -if aa bb
cp -fi aa bb

It appears that some implementations support the last option applies
rule, whereas others will alway prompt for interactive input regardless.

Action:

Consideration should be given to make the standard consistent between cp/mv/rm 
in a future direction. If the standard developers agree that the situation is 
unclear then an interpretation should be made that no conformance distinction 
can be made between implementations who handle
the -fi and -if options differently for this version of the 
standard and the matter referred to the sponsor.

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